patch-2.3.4 linux/net/socket.c

Next file: linux/net/unix/af_unix.c
Previous file: linux/net/sched/sch_generic.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.3/linux/net/socket.c linux/net/socket.c
@@ -131,6 +131,11 @@
 static int sockets_in_use  = 0;
 
 /*
+ *	Socket hashing lock.
+ */
+rwlock_t sockhash_lock = RW_LOCK_UNLOCKED;
+
+/*
  *	Support routines. Move socket addresses back and forth across the kernel/user
  *	divide and look after the messy bits.
  */
@@ -561,7 +566,8 @@
 		/* fall through */
 	case 0:
 	call_kill:
-		kill_fasync(sock->fasync_list, SIGIO);
+		if(sock->fasync_list != NULL)
+			kill_fasync(sock->fasync_list, SIGIO);
 		break;
 	}
 	return 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)