We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dc4c41 commit 7c402f7Copy full SHA for 7c402f7
net/ethtool/ioctl.c
@@ -1251,6 +1251,11 @@ static noinline_for_stack int ethtool_get_rxfh(struct net_device *dev,
1251
if (copy_to_user(useraddr + offsetof(struct ethtool_rxfh, hfunc),
1252
&rxfh_dev.hfunc, sizeof(rxfh.hfunc))) {
1253
ret = -EFAULT;
1254
+ } else if (copy_to_user(useraddr +
1255
+ offsetof(struct ethtool_rxfh, input_xfrm),
1256
+ &rxfh_dev.input_xfrm,
1257
+ sizeof(rxfh.input_xfrm))) {
1258
+ ret = -EFAULT;
1259
} else if (copy_to_user(useraddr +
1260
offsetof(struct ethtool_rxfh, rss_config[0]),
1261
rss_config, total_size)) {
0 commit comments