diff options
Diffstat (limited to 'net/phonet/pn_dev.c')
| -rw-r--r-- | net/phonet/pn_dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/phonet/pn_dev.c b/net/phonet/pn_dev.c index c597cc53a6fb..9b4ced6e0968 100644 --- a/net/phonet/pn_dev.c +++ b/net/phonet/pn_dev.c | |||
| @@ -25,6 +25,7 @@ | |||
| 25 | 25 | ||
| 26 | #include <linux/kernel.h> | 26 | #include <linux/kernel.h> |
| 27 | #include <linux/net.h> | 27 | #include <linux/net.h> |
| 28 | #include <linux/slab.h> | ||
| 28 | #include <linux/netdevice.h> | 29 | #include <linux/netdevice.h> |
| 29 | #include <linux/phonet.h> | 30 | #include <linux/phonet.h> |
| 30 | #include <linux/proc_fs.h> | 31 | #include <linux/proc_fs.h> |
| @@ -107,8 +108,7 @@ static void phonet_device_destroy(struct net_device *dev) | |||
| 107 | if (pnd) { | 108 | if (pnd) { |
| 108 | u8 addr; | 109 | u8 addr; |
| 109 | 110 | ||
| 110 | for (addr = find_first_bit(pnd->addrs, 64); addr < 64; | 111 | for_each_set_bit(addr, pnd->addrs, 64) |
| 111 | addr = find_next_bit(pnd->addrs, 64, 1+addr)) | ||
| 112 | phonet_address_notify(RTM_DELADDR, dev, addr); | 112 | phonet_address_notify(RTM_DELADDR, dev, addr); |
| 113 | kfree(pnd); | 113 | kfree(pnd); |
| 114 | } | 114 | } |
