From 80401ba3e55afaa072ace3aa2732010b6766d221 Mon Sep 17 00:00:00 2001 From: Dmitry Shmidt Date: Mon, 26 Nov 2012 12:52:31 -0800 Subject: [PATCH] ipv4: Skip calling fib_detect_death() if fib_dev is NULL Change-Id: I1b8c6c7e79cb8a05b4b715ddb3299d74edef0e14 Signed-off-by: Dmitry Shmidt --- net/ipv4/fib_semantics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.34.1