patch-2.3.4 linux/net/core/dev_mcast.c
Next file: linux/net/core/dst.c
Previous file: linux/net/core/dev.c
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Tue May 25 13:06:34 1999
- Orig file:
v2.3.3/linux/net/core/dev_mcast.c
- Orig date:
Sun Mar 21 07:22:00 1999
diff -u --recursive --new-file v2.3.3/linux/net/core/dev_mcast.c linux/net/core/dev_mcast.c
@@ -203,8 +203,7 @@
int len=0;
struct device *dev;
- start_bh_atomic();
-
+ read_lock_bh(&dev_base_lock);
for (dev = dev_base; dev; dev = dev->next) {
for (m = dev->mc_list; m; m = m->next) {
int i;
@@ -229,7 +228,7 @@
*eof = 1;
done:
- end_bh_atomic();
+ read_unlock_bh(&dev_base_lock);
*start=buffer+(offset-begin);
len-=(offset-begin);
if(len>length)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)