diff options
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/ethtool.c | 2 | ||||
-rw-r--r-- | net/core/user_dma.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/net/core/ethtool.c b/net/core/ethtool.c index 27ce168..2797e28 100644 --- a/net/core/ethtool.c +++ b/net/core/ethtool.c @@ -437,7 +437,7 @@ static int ethtool_set_pauseparam(struct net_device *dev, void __user *useraddr) { struct ethtool_pauseparam pauseparam; - if (!dev->ethtool_ops->get_pauseparam) + if (!dev->ethtool_ops->set_pauseparam) return -EOPNOTSUPP; if (copy_from_user(&pauseparam, useraddr, sizeof(pauseparam))) diff --git a/net/core/user_dma.c b/net/core/user_dma.c index b7c98db..248a6b6 100644 --- a/net/core/user_dma.c +++ b/net/core/user_dma.c @@ -29,6 +29,7 @@ #include <linux/socket.h> #include <linux/rtnetlink.h> /* for BUG_TRAP */ #include <net/tcp.h> +#include <net/netdma.h> #define NET_DMA_DEFAULT_COPYBREAK 4096 |