]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
can: add missing socket check in can/raw release
authorOliver Hartkopp <socketcan@hartkopp.net>
Wed, 20 Apr 2011 01:57:15 +0000 (01:57 +0000)
committerAndi Kleen <ak@linux.intel.com>
Mon, 1 Aug 2011 20:54:47 +0000 (13:54 -0700)
commitda4e8b8ed55d397cfca5fa4656e7e71e7ba3d688
tree986a574d17fc0db44bd35669d47106c899414671
parentc966ef96919386c22f9491272473efbc671b38fb
can: add missing socket check in can/raw release

commit 10022a6c66e199d8f61d9044543f38785713cbbd upstream.

v2: added space after 'if' according code style.

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

Thanks to Dave Jones pointing at this issue in net/can/bcm.c

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: Chuck Ebbert <cebbert@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
net/can/raw.c