patch-2.3.6 linux/net/netrom/nr_route.c
Next file: linux/net/netsyms.c
Previous file: linux/net/irda/wrapper.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/netrom/nr_route.c
- Orig date:
Mon May 31 22:28:07 1999
diff -u --recursive --new-file v2.3.5/linux/net/netrom/nr_route.c linux/net/netrom/nr_route.c
@@ -564,13 +564,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_NETROM)
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;
}
@@ -582,13 +582,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_NETROM && ax25cmp(addr, (ax25_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)