From: Dmitry Shmidt Date: Mon, 26 Nov 2012 20:52:31 +0000 (-0800) Subject: ipv4: Skip calling fib_detect_death() if fib_dev is NULL X-Git-Tag: firefly_0821_release~7613^2~15 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=80401ba3e55afaa072ace3aa2732010b6766d221;p=firefly-linux-kernel-4.4.55.git ipv4: Skip calling fib_detect_death() if fib_dev is NULL Change-Id: I1b8c6c7e79cb8a05b4b715ddb3299d74edef0e14 Signed-off-by: Dmitry Shmidt --- diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c index 7e454ba8e850..c60a396c44f4 100644 --- a/net/ipv4/fib_semantics.c +++ b/net/ipv4/fib_semantics.c @@ -1114,7 +1114,7 @@ void fib_select_default(struct fib_result *res) order++; } - if (order <= 0 || fi == NULL) { + if (order <= 0 || fi == NULL || fi->fib_dev == NULL) { tb->tb_default = -1; goto out; }