diff options
Diffstat (limited to 'kernel/taskstats.c')
-rw-r--r-- | kernel/taskstats.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/taskstats.c b/kernel/taskstats.c index ef4f9cd980fd..0e347f1c7800 100644 --- a/kernel/taskstats.c +++ b/kernel/taskstats.c | |||
@@ -677,8 +677,9 @@ static int taskstats_pre_doit(const struct genl_ops *ops, struct sk_buff *skb, | |||
677 | return -EINVAL; | 677 | return -EINVAL; |
678 | } | 678 | } |
679 | 679 | ||
680 | return nlmsg_validate(info->nlhdr, GENL_HDRLEN, TASKSTATS_CMD_ATTR_MAX, | 680 | return nlmsg_validate_deprecated(info->nlhdr, GENL_HDRLEN, |
681 | policy, info->extack); | 681 | TASKSTATS_CMD_ATTR_MAX, policy, |
682 | info->extack); | ||
682 | } | 683 | } |
683 | 684 | ||
684 | static struct genl_family family __ro_after_init = { | 685 | static struct genl_family family __ro_after_init = { |