From: Stephen Hemminger (lqo@univ-ag.fr)
Date: Thu Aug 14 2003 - 01:48:52 EEST
netrom would oops if one did:
modprobe netrom
ifconfig -a
because the code in destroy was freeing the socket then release_sock was
called.
diff -Nru a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c
--- a/net/netrom/af_netrom.c Wed Aug 13 15:33:26 2003
+++ b/net/netrom/af_netrom.c Wed Aug 13 15:33:26 2003
@@ -516,6 +516,7 @@
if (sk == NULL) return 0;
+ sock_hold(sk);
lock_sock(sk);
nr = nr_sk(sk);
@@ -551,6 +552,7 @@
sock->sk = NULL;
release_sock(sk);
+ sock_put(sk);
return 0;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-hams" in
the body of a message to terhi.victor@logonet.com
More majordomo info at http://vger.kernel.org/majordomo-info.html
This archive was generated by hypermail 2b30 : Thu Aug 14 2003 - 01:49:16 EEST