diff options
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/netpoll.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c index b4c90e42b443..37cc854774a4 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c | |||
@@ -715,7 +715,7 @@ int netpoll_parse_options(struct netpoll *np, char *opt) | |||
715 | } | 715 | } |
716 | EXPORT_SYMBOL(netpoll_parse_options); | 716 | EXPORT_SYMBOL(netpoll_parse_options); |
717 | 717 | ||
718 | int __netpoll_setup(struct netpoll *np, struct net_device *ndev) | 718 | int __netpoll_setup(struct netpoll *np, struct net_device *ndev, gfp_t gfp) |
719 | { | 719 | { |
720 | struct netpoll_info *npinfo; | 720 | struct netpoll_info *npinfo; |
721 | const struct net_device_ops *ops; | 721 | const struct net_device_ops *ops; |
@@ -734,7 +734,7 @@ int __netpoll_setup(struct netpoll *np, struct net_device *ndev) | |||
734 | } | 734 | } |
735 | 735 | ||
736 | if (!ndev->npinfo) { | 736 | if (!ndev->npinfo) { |
737 | npinfo = kmalloc(sizeof(*npinfo), GFP_KERNEL); | 737 | npinfo = kmalloc(sizeof(*npinfo), gfp); |
738 | if (!npinfo) { | 738 | if (!npinfo) { |
739 | err = -ENOMEM; | 739 | err = -ENOMEM; |
740 | goto out; | 740 | goto out; |
@@ -752,7 +752,7 @@ int __netpoll_setup(struct netpoll *np, struct net_device *ndev) | |||
752 | 752 | ||
753 | ops = np->dev->netdev_ops; | 753 | ops = np->dev->netdev_ops; |
754 | if (ops->ndo_netpoll_setup) { | 754 | if (ops->ndo_netpoll_setup) { |
755 | err = ops->ndo_netpoll_setup(ndev, npinfo); | 755 | err = ops->ndo_netpoll_setup(ndev, npinfo, gfp); |
756 | if (err) | 756 | if (err) |
757 | goto free_npinfo; | 757 | goto free_npinfo; |
758 | } | 758 | } |
@@ -857,7 +857,7 @@ int netpoll_setup(struct netpoll *np) | |||
857 | refill_skbs(); | 857 | refill_skbs(); |
858 | 858 | ||
859 | rtnl_lock(); | 859 | rtnl_lock(); |
860 | err = __netpoll_setup(np, ndev); | 860 | err = __netpoll_setup(np, ndev, GFP_KERNEL); |
861 | rtnl_unlock(); | 861 | rtnl_unlock(); |
862 | 862 | ||
863 | if (err) | 863 | if (err) |