Update to 2.6.32.41 Mainline
/net/can/bcm.c
blob:2ffd2e01dc5225656c91a45f94313bd7be6b5cf7 -> blob:029dcc2b323ba5bbcc3218765e47f9c00ffd0634
--- net/can/bcm.c
+++ net/can/bcm.c
@@ -1425,14 +1425,9 @@ static int bcm_init(struct sock *sk)
static int bcm_release(struct socket *sock)
{
struct sock *sk = sock->sk;
- struct bcm_sock *bo;
+ struct bcm_sock *bo = bcm_sk(sk);
struct bcm_op *op, *next;
- if (sk == NULL)
- return 0;
-
- bo = bcm_sk(sk);
-
/* remove bcm_ops, timer, rx_unregister(), etc. */
unregister_netdevice_notifier(&bo->notifier);