diff options
author | David S. Miller <davem@davemloft.net> | 2018-10-19 14:03:06 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-19 14:03:06 -0400 |
commit | 2e2d6f0342be7f73a34526077fa96f42f0e8c661 (patch) | |
tree | 29f3740825a70aa606e03cf3a048d9a3a751529c /net/socket.c | |
parent | 9333f207920336575cba4ed60603c1cdb79ace4f (diff) | |
parent | 48995423143a097527802e28d7add20e5a27677a (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
net/sched/cls_api.c has overlapping changes to a call to
nlmsg_parse(), one (from 'net') added rtm_tca_policy instead of NULL
to the 5th argument, and another (from 'net-next') added cb->extack
instead of NULL to the 6th argument.
net/ipv4/ipmr_base.c is a case of a bug fix in 'net' being done to
code which moved (to mr_table_dump)) in 'net-next'. Thanks to David
Ahern for the heads up.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/socket.c')
-rw-r--r-- | net/socket.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/net/socket.c b/net/socket.c index 713dc4833d40..b68801c7d0ab 100644 --- a/net/socket.c +++ b/net/socket.c | |||
@@ -2875,9 +2875,14 @@ static int ethtool_ioctl(struct net *net, struct compat_ifreq __user *ifr32) | |||
2875 | copy_in_user(&rxnfc->fs.ring_cookie, | 2875 | copy_in_user(&rxnfc->fs.ring_cookie, |
2876 | &compat_rxnfc->fs.ring_cookie, | 2876 | &compat_rxnfc->fs.ring_cookie, |
2877 | (void __user *)(&rxnfc->fs.location + 1) - | 2877 | (void __user *)(&rxnfc->fs.location + 1) - |
2878 | (void __user *)&rxnfc->fs.ring_cookie) || | 2878 | (void __user *)&rxnfc->fs.ring_cookie)) |
2879 | copy_in_user(&rxnfc->rule_cnt, &compat_rxnfc->rule_cnt, | 2879 | return -EFAULT; |
2880 | sizeof(rxnfc->rule_cnt))) | 2880 | if (ethcmd == ETHTOOL_GRXCLSRLALL) { |
2881 | if (put_user(rule_cnt, &rxnfc->rule_cnt)) | ||
2882 | return -EFAULT; | ||
2883 | } else if (copy_in_user(&rxnfc->rule_cnt, | ||
2884 | &compat_rxnfc->rule_cnt, | ||
2885 | sizeof(rxnfc->rule_cnt))) | ||
2881 | return -EFAULT; | 2886 | return -EFAULT; |
2882 | } | 2887 | } |
2883 | 2888 | ||