]> 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:55:00 +0000 (15:55 -0700)
commitd459e08d10e2a6c5e3556bdd8fc7fb3b0d20644e
tree32b2b57fb56877738a5f0ea220366aa7986eb95b
parent1c89151b1c02cfd10d09350e5d49aef9708836cd
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