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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Apr 2011 03:36:59 +0000 (20:36 -0700)
commitc6914a6f261aca0c9f715f883a353ae7ff51fe83
tree05138f623ae01c13dbfeb5e9b38ae1b5e1bdde73
parent0b0dc0f17f98b59772ca6380c7d5ce4cc593a974
can: Add missing socket check in can/bcm release.

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>
net/can/bcm.c