net/neighbour: fix crash at dumping device-agnostic proxy entries
authorKonstantin Khlebnikov <koct9i@gmail.com>
Mon, 30 Nov 2015 22:14:48 +0000 (01:14 +0300)
committerZefan Li <lizefan@huawei.com>
Wed, 26 Oct 2016 15:15:30 +0000 (23:15 +0800)
commitcb4a1131acf864b83c575478b16fc8485d4be1ae
tree801d7fc3f6fb7ab9ed03a8a8763e7697c1aae959
parent468992e1e827feac0e1304b131a24679e7830958
net/neighbour: fix crash at dumping device-agnostic proxy entries

commit 6adc5fd6a142c6e2c80574c1db0c7c17dedaa42e upstream.

Proxy entries could have null pointer to net-device.

Signed-off-by: Konstantin Khlebnikov <koct9i@gmail.com>
Fixes: 84920c1420e2 ("net: Allow ipv6 proxies and arp proxies be shown with iproute2")
Signed-off-by: David S. Miller <davem@davemloft.net>
[lizf: Backported to 3.4: adjust context]
Signed-off-by: Zefan Li <lizefan@huawei.com>
net/core/neighbour.c