aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/netpoll.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/netpoll.c')
-rw-r--r--net/core/netpoll.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c
index 41c4e9ce1141..2c6379da295c 100644
--- a/net/core/netpoll.c
+++ b/net/core/netpoll.c
@@ -584,7 +584,7 @@ int netpoll_parse_options(struct netpoll *np, char *opt)
584} 584}
585EXPORT_SYMBOL(netpoll_parse_options); 585EXPORT_SYMBOL(netpoll_parse_options);
586 586
587int __netpoll_setup(struct netpoll *np, struct net_device *ndev, gfp_t gfp) 587int __netpoll_setup(struct netpoll *np, struct net_device *ndev)
588{ 588{
589 struct netpoll_info *npinfo; 589 struct netpoll_info *npinfo;
590 const struct net_device_ops *ops; 590 const struct net_device_ops *ops;
@@ -603,7 +603,7 @@ int __netpoll_setup(struct netpoll *np, struct net_device *ndev, gfp_t gfp)
603 } 603 }
604 604
605 if (!ndev->npinfo) { 605 if (!ndev->npinfo) {
606 npinfo = kmalloc(sizeof(*npinfo), gfp); 606 npinfo = kmalloc(sizeof(*npinfo), GFP_KERNEL);
607 if (!npinfo) { 607 if (!npinfo) {
608 err = -ENOMEM; 608 err = -ENOMEM;
609 goto out; 609 goto out;
@@ -617,7 +617,7 @@ int __netpoll_setup(struct netpoll *np, struct net_device *ndev, gfp_t gfp)
617 617
618 ops = np->dev->netdev_ops; 618 ops = np->dev->netdev_ops;
619 if (ops->ndo_netpoll_setup) { 619 if (ops->ndo_netpoll_setup) {
620 err = ops->ndo_netpoll_setup(ndev, npinfo, gfp); 620 err = ops->ndo_netpoll_setup(ndev, npinfo);
621 if (err) 621 if (err)
622 goto free_npinfo; 622 goto free_npinfo;
623 } 623 }
@@ -749,7 +749,7 @@ int netpoll_setup(struct netpoll *np)
749 /* fill up the skb queue */ 749 /* fill up the skb queue */
750 refill_skbs(); 750 refill_skbs();
751 751
752 err = __netpoll_setup(np, ndev, GFP_KERNEL); 752 err = __netpoll_setup(np, ndev);
753 if (err) 753 if (err)
754 goto put; 754 goto put;
755 755