Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253410
b: refs/heads/master
c: 0c1ad04
h: refs/heads/master
v: v3
  • Loading branch information
WANG Cong authored and David S. Miller committed Jun 9, 2011
1 parent b4fb756 commit bd75173
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fe6fe792faec3fc2d2db39b69651682b8c4e7fcb
refs/heads/master: 0c1ad04aecb975f2a2014e1bc5a2fa23923ecbd9
6 changes: 6 additions & 0 deletions trunk/net/core/netpoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,12 @@ int netpoll_setup(struct netpoll *np)
return -ENODEV;
}

if (ndev->master) {
printk(KERN_ERR "%s: %s is a slave device, aborting.\n",
np->name, np->dev_name);
return -EBUSY;
}

if (!netif_running(ndev)) {
unsigned long atmost, atleast;

Expand Down

0 comments on commit bd75173

Please sign in to comment.