--- zzzz-none-000/linux-2.6.39.4/net/ipv4/fib_semantics.c 2011-08-03 19:43:28.000000000 +0000 +++ puma6-atom-6490-729/linux-2.6.39.4/net/ipv4/fib_semantics.c 2021-11-10 13:38:18.000000000 +0000 @@ -572,8 +572,11 @@ fl4.flowi4_scope = RT_SCOPE_LINK; err = fib_lookup(net, &fl4, &res); if (err) { - rcu_read_unlock(); - return err; + struct fib_table *table = fib_get_table(net, cfg->fc_table); + if (fib_table_lookup(table, &fl4, &res, FIB_LOOKUP_NOREF)) { + rcu_read_unlock(); + return -ENETUNREACH; + } } } err = -EINVAL;