NET: ROSE: Don't dereference NULL neighbour pointer.
authorRalf Baechle <ralf@linux-mips.org>
Thu, 18 Jun 2015 22:46:53 +0000 (00:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 18 Sep 2015 11:52:13 +0000 (13:52 +0200)
commit7b61d03d0469e6771280da41a638bfe9c7169129
tree1f5a3cd44059203365e5ff38c257bdedad0c2600
parentc726e1d46177df427482b0b3e0f758083f83c50f
NET: ROSE: Don't dereference NULL neighbour pointer.

commit d496f7842aada20c61e6044b3395383fa972872c upstream.

A ROSE socket doesn't necessarily always have a neighbour pointer so check
if the neighbour pointer is valid before dereferencing it.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Tested-by: Bernard Pidoux <f6bvp@free.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
(cherry picked from commit 8bbe4f448c01949084ef404eded3622086f052a6)

Signed-off-by: Willy Tarreau <w@1wt.eu>
net/rose/af_rose.c