diff options
-rw-r--r-- | net/core/netpoll.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c index a5ad1c1c4b18..a9b10048388a 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c | |||
@@ -1056,6 +1056,7 @@ int netpoll_setup(struct netpoll *np) | |||
1056 | err = -ENODEV; | 1056 | err = -ENODEV; |
1057 | goto unlock; | 1057 | goto unlock; |
1058 | } | 1058 | } |
1059 | dev_hold(ndev); | ||
1059 | 1060 | ||
1060 | if (netdev_master_upper_dev_get(ndev)) { | 1061 | if (netdev_master_upper_dev_get(ndev)) { |
1061 | np_err(np, "%s is a slave device, aborting\n", np->dev_name); | 1062 | np_err(np, "%s is a slave device, aborting\n", np->dev_name); |