can: Add missing socket check in can/bcm release.
authorDave Jones <davej@redhat.com>
Mon, 13 Jun 2011 10:58:05 +0000 (11:58 +0100)
committerAndy Whitcroft <apw@canonical.com>
Tue, 14 Jun 2011 08:23:25 +0000 (09:23 +0100)
commit028ec5c82141aeb601db01fb4dd17c149963dc44
tree52e220ac8826e0e87481d1e06a2931b55a1fc8e9
parentbbfba6b73e68fe808be4707e827d5867a9dc6f2e
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>
(cherry picked from commit c6914a6f261aca0c9f715f883a353ae7ff51fe83)
CVE-2011-1598
BugLink: http://bugs.launchpad.net/bugs/796502
Acked-by: Leann Ogasawara <leann.ogasawara@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Andy Whitcroft <apw@canonical.com>
net/can/bcm.c