patch-2.3.6 linux/net/rose/rose_route.c
Next file: linux/net/sched/cls_api.c
Previous file: linux/net/packet/af_packet.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Wed Jun 9 14:45:37 1999
- Orig file:
v2.3.5/linux/net/rose/rose_route.c
- Orig date:
Mon May 31 22:28:07 1999
diff -u --recursive --new-file v2.3.5/linux/net/rose/rose_route.c linux/net/rose/rose_route.c
@@ -543,13 +543,13 @@
{
struct device *dev, *first = NULL;
- read_lock_bh(&dev_base_lock);
+ read_lock(&dev_base_lock);
for (dev = dev_base; dev != NULL; dev = dev->next) {
if ((dev->flags & IFF_UP) && dev->type == ARPHRD_ROSE)
if (first == NULL || strncmp(dev->name, first->name, 3) < 0)
first = dev;
}
- read_unlock_bh(&dev_base_lock);
+ read_unlock(&dev_base_lock);
return first;
}
@@ -561,13 +561,13 @@
{
struct device *dev;
- read_lock_bh(&dev_base_lock);
+ read_lock(&dev_base_lock);
for (dev = dev_base; dev != NULL; dev = dev->next) {
if ((dev->flags & IFF_UP) && dev->type == ARPHRD_ROSE && rosecmp(addr, (rose_address *)dev->dev_addr) == 0)
goto out;
}
out:
- read_unlock_bh(&dev_base_lock);
+ read_unlock(&dev_base_lock);
return dev;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)