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
- Lines: 18
- Date:
Sat Jun 13 11:40:31 1998
- Orig file:
v2.1.105/linux/include/linux/rtnetlink.h
- Orig date:
Sat May 2 14:19:54 1998
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