Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215227
b: refs/heads/master
c: 3b410a3
h: refs/heads/master
i:
  215225: f8532e8
  215223: a761265
v: v3
  • Loading branch information
Neil Horman authored and David S. Miller committed Oct 18, 2010
1 parent 41aecab commit 0496ba8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: 990c3d6f9c4115347659fc2b163907c8c832ae44
refs/heads/master: 3b410a310b48a8e7de3438957635093596ad5ca5
9 changes: 8 additions & 1 deletion trunk/drivers/net/netconsole.c
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,14 @@ static int netconsole_netdev_event(struct notifier_block *this,
strlcpy(nt->np.dev_name, dev->name, IFNAMSIZ);
break;
case NETDEV_UNREGISTER:
netpoll_cleanup(&nt->np);
/*
* rtnl_lock already held
*/
if (nt->np.dev) {
__netpoll_cleanup(&nt->np);
dev_put(nt->np.dev);
nt->np.dev = NULL;
}
/* Fall through */
case NETDEV_GOING_DOWN:
case NETDEV_BONDING_DESLAVE:
Expand Down

0 comments on commit 0496ba8

Please sign in to comment.