]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/core/netpoll.c
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux...
[karo-tx-linux.git] / net / core / netpoll.c
index 2d7d6d4737810c0bd9d0b93defbf2c972f1c6b2e..18d9cbda3a39c0b19d0751350489c08249cba635 100644 (file)
@@ -792,6 +792,13 @@ 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);
+               err = -EBUSY;
+               goto put;
+       }
+
        if (!netif_running(ndev)) {
                unsigned long atmost, atleast;