summaryrefslogtreecommitdiffstats
path: root/kernel/taskstats.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/taskstats.c')
-rw-r--r--kernel/taskstats.c5
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
684static struct genl_family family __ro_after_init = { 685static struct genl_family family __ro_after_init = {