Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[cascardo/linux.git] / net / ipv4 / fib_semantics.c
index e9f5622..388d3e2 100644 (file)
@@ -1580,7 +1580,8 @@ static bool fib_good_nh(const struct fib_nh *nh)
 
                rcu_read_lock_bh();
 
-               n = __ipv4_neigh_lookup_noref(nh->nh_dev, nh->nh_gw);
+               n = __ipv4_neigh_lookup_noref(nh->nh_dev,
+                                             (__force u32)nh->nh_gw);
                if (n)
                        state = n->nud_state;