patch-2.4.26 linux-2.4.26/net/bluetooth/bnep/sock.c
Next file: linux-2.4.26/net/bluetooth/cmtp/sock.c
Previous file: linux-2.4.26/net/bluetooth/af_bluetooth.c
Back to the patch index
Back to the overall index
-  Lines: 12
-  Date:
2004-04-14 06:05:41.000000000 -0700
-  Orig file: 
linux-2.4.25/net/bluetooth/bnep/sock.c
-  Orig date: 
2004-02-18 05:36:32.000000000 -0800
diff -urN linux-2.4.25/net/bluetooth/bnep/sock.c linux-2.4.26/net/bluetooth/bnep/sock.c
@@ -94,8 +94,10 @@
 		if (!nsock)
 			return err;
 
-		if (nsock->sk->state != BT_CONNECTED)
+		if (nsock->sk->state != BT_CONNECTED) {
+			fput(nsock->file);
 			return -EBADFD;
+		}
 
 		err = bnep_add_connection(&ca, nsock);
 		if (!err) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)