]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerSasha Levin <sasha.levin@oracle.com>
Sun, 5 Jul 2015 14:12:48 +0000 (10:12 -0400)
commitd46c266ac221fcc2c9b5fb7496ac2967df23aca0
tree09232d7b1a31d38413e901f2fde50868b5733abd
parentc44ed568ae2ef49bb72d55c8a12e6ca19758b845
NET: ROSE: Don't dereference NULL neighbour pointer.

[ Upstream commit d496f7842aada20c61e6044b3395383fa972872c ]

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>
Cc: stable@vger.kernel.org #2.6.11+
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
net/rose/af_rose.c