patch-2.1.106 linux/include/linux/rtnetlink.h

Next file: linux/include/linux/sched.h
Previous file: linux/include/linux/proc_fs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.105/linux/include/linux/rtnetlink.h linux/include/linux/rtnetlink.h
@@ -658,7 +658,7 @@
 	atomic_dec(&rtnl_rlockct);
 	if (atomic_read(&rtnl_rlockct) <= 1) {
 		wake_up(&rtnl_wait);
-		if (rtnl->receive_queue.qlen)
+		if (rtnl && rtnl->receive_queue.qlen)
 			rtnl->data_ready(rtnl, 0);
 	}
 }
@@ -672,7 +672,7 @@
 	atomic_dec(&rtnl_rlockct); \
 	if (atomic_read(&rtnl_rlockct) <= 1) { \
 		wake_up(&rtnl_wait); \
-		if (rtnl->receive_queue.qlen) \
+		if (rtnl && rtnl->receive_queue.qlen) \
 			rtnl->data_ready(rtnl, 0); \
 	} \
 })

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov