Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66377
b: refs/heads/master
c: 890d52d
h: refs/heads/master
i:
  66375: 0217f8e
v: v3
  • Loading branch information
Eric W. Biederman authored and David S. Miller committed Oct 10, 2007
1 parent 38d1a22 commit df7b402
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ab5f5e8b144e4c804ef3aa1ce08a9ca9f01187ce
refs/heads/master: 890d52d3f1e28888c4122e120426588f5ad63d37
7 changes: 4 additions & 3 deletions trunk/net/appletalk/aarp.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,15 +330,16 @@ static void aarp_expire_timeout(unsigned long unused)
static int aarp_device_event(struct notifier_block *this, unsigned long event,
void *ptr)
{
struct net_device *dev = ptr;
int ct;

if (event == NETDEV_DOWN) {
write_lock_bh(&aarp_lock);

for (ct = 0; ct < AARP_HASH_SIZE; ct++) {
__aarp_expire_device(&resolved[ct], ptr);
__aarp_expire_device(&unresolved[ct], ptr);
__aarp_expire_device(&proxies[ct], ptr);
__aarp_expire_device(&resolved[ct], dev);
__aarp_expire_device(&unresolved[ct], dev);
__aarp_expire_device(&proxies[ct], dev);
}

write_unlock_bh(&aarp_lock);
Expand Down
4 changes: 3 additions & 1 deletion trunk/net/appletalk/ddp.c
Original file line number Diff line number Diff line change
Expand Up @@ -647,9 +647,11 @@ static inline void atalk_dev_down(struct net_device *dev)
static int ddp_device_event(struct notifier_block *this, unsigned long event,
void *ptr)
{
struct net_device *dev = ptr;

if (event == NETDEV_DOWN)
/* Discard any use of this */
atalk_dev_down(ptr);
atalk_dev_down(dev);

return NOTIFY_DONE;
}
Expand Down

0 comments on commit df7b402

Please sign in to comment.