diff --git a/net/ethtool/ioctl.c b/net/ethtool/ioctl.c index 9550de7a429de24e22b2d4b2edc6a1962fe0ca1d..5081cf226769031e05af07ff10d529253c09ebd6 100644 --- a/net/ethtool/ioctl.c +++ b/net/ethtool/ioctl.c @@ -906,7 +906,7 @@ static int ethtool_rxnfc_copy_to_user(void __user *useraddr, rule_buf); useraddr += offsetof(struct compat_ethtool_rxnfc, rule_locs); } else { - ret = copy_to_user(useraddr, &rxnfc, size); + ret = copy_to_user(useraddr, rxnfc, size); useraddr += offsetof(struct ethtool_rxnfc, rule_locs); }