aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/core/netpoll.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c
index 42ea4b0e59f1..18d9cbda3a39 100644
--- a/net/core/netpoll.c
+++ b/net/core/netpoll.c
@@ -795,7 +795,8 @@ int netpoll_setup(struct netpoll *np)
795 if (ndev->master) { 795 if (ndev->master) {
796 printk(KERN_ERR "%s: %s is a slave device, aborting.\n", 796 printk(KERN_ERR "%s: %s is a slave device, aborting.\n",
797 np->name, np->dev_name); 797 np->name, np->dev_name);
798 return -EBUSY; 798 err = -EBUSY;
799 goto put;
799 } 800 }
800 801
801 if (!netif_running(ndev)) { 802 if (!netif_running(ndev)) {