diff --git a/net/ethtool/strset.c b/net/ethtool/strset.c index 0734e83c674c..1fc28f95d493 100644 --- a/net/ethtool/strset.c +++ b/net/ethtool/strset.c @@ -169,7 +169,7 @@ static int strset_parse_request(struct ethnl_req_info *req_base, if (ret < 0) return ret; - req_info->counts_only = tb[ETHTOOL_A_STRSET_COUNTS_ONLY]; + req_info->counts_only = tb[ETHTOOL_A_STRSET_COUNTS_ONLY-1]; nla_for_each_nested(attr, nest, rem) { u32 id;