net: ipv6: Check neighbor pointer in NS reply timeout

If neighbor is not found, then ignore the timeout.

Coverity-CID: 157583

Change-Id: Ia2199970bd862e43901f5717025271c11c74af5e
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2017-01-17 16:16:24 +02:00
commit d3301aae88

View file

@ -459,7 +459,7 @@ static void ns_reply_timeout(struct k_work *work)
struct net_nbr *nbr = get_nbr_from_data(data); struct net_nbr *nbr = get_nbr_from_data(data);
if (!data) { if (!nbr) {
NET_DBG("NS timeout but no nbr data"); NET_DBG("NS timeout but no nbr data");
return; return;
} }