net/can bugfix: use after free bug in can protocol drivers
authorLothar Waßmann <LW@KARO-electronics.de>
Tue, 14 Jul 2009 23:10:21 +0000 (23:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jul 2009 18:20:37 +0000 (11:20 -0700)
commitf7e5cc0c40dff92bad2894153f675c6c542ba2f0
treebd7e85854edeb3271f9a29f021392d7fdcc08bed
parent252aa9d94a04252046f3a382e6aca1b5c95921d8
net/can bugfix: use after free bug in can protocol drivers

Fix a use after free bug in can protocol drivers

The release functions of the can protocol drivers lack a call to
sock_orphan() which leads to referencing freed memory under certain
circumstances.

This patch fixes a bug reported here:
https://lists.berlios.de/pipermail/socketcan-users/2009-July/000985.html

Signed-off-by: Lothar Wassmann <LW@KARO-electronics.de>
Acked-by: Oliver Hartkopp <oliver@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/can/bcm.c
net/can/raw.c