]> 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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 14 Mar 2012 14:57:20 +0000 (10:57 -0400)
commit2aaab289c94b23f7275e9bb38a927483ff9b1760
tree9d778ec31b0881d99ba95a06526d77dc6f257b4d
parentdfde8c905e97a9332f87479b0cec3323e4eda71e
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: Paul Gortmaker <paul.gortmaker@windriver.com>
net/can/bcm.c