diff options
Diffstat (limited to 'net/sched/act_api.c')
| -rw-r--r-- | net/sched/act_api.c | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sched/act_api.c b/net/sched/act_api.c index a512b18c0088..f893d180da1c 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c @@ -1028,8 +1028,7 @@ static struct nlattr *find_dump_kind(const struct nlmsghdr *n)  	if (tb[1] == NULL)  		return NULL; -	if (nla_parse(tb2, TCA_ACT_MAX, nla_data(tb[1]), -		      nla_len(tb[1]), NULL) < 0) +	if (nla_parse_nested(tb2, TCA_ACT_MAX, tb[1], NULL) < 0)  		return NULL;  	kind = tb2[TCA_ACT_KIND];  | 
