neigh: check error pointer instead of NULL for ipv4_neigh_lookup()
authorWANG Cong <xiyou.wangcong@gmail.com>
Thu, 25 Sep 2014 00:07:53 +0000 (17:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Sep 2014 21:16:04 +0000 (17:16 -0400)
commit2c1a4311b61072afe2309d4152a7993e92caa41c
tree7addd5b21588c2403e2ff3e563fbe2ce0a75bc9b
parent86fa9c424c8ff57fbc2278e90d91bb839ec84ab5
neigh: check error pointer instead of NULL for ipv4_neigh_lookup()

Fixes: commit f187bc6efb7250afee0e2009b6106 ("ipv4: No need to set generic neighbour pointer")
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c