]> git.karo-electronics.de Git - karo-tx-linux.git/commit
can: Add missing socket check in can/bcm release.
authorDave Jones <davej@redhat.com>
Wed, 20 Apr 2011 03:36:59 +0000 (20:36 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 May 2011 22:06:48 +0000 (15:06 -0700)
commitba1ba1c0aaa659914bf9d47616453f6378add40f
treef1e402bb452053e240a05b6e888f512ea06d93b3
parent6f0a6240e8ce1659574e944eac04e871a9dc1fe7
can: Add missing socket check in can/bcm release.

commit c6914a6f261aca0c9f715f883a353ae7ff51fe83 upstream.

We can get here with a NULL socket argument passed from userspace,
so we need to handle it accordingly.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/can/bcm.c