]> git.baikalelectronics.ru Git - kernel.git/commit
taskstats: move specifying netlink policy back to ops
authorJakub Kicinski <kuba@kernel.org>
Fri, 2 Oct 2020 21:49:58 +0000 (14:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Oct 2020 02:11:12 +0000 (19:11 -0700)
commit4076187d1b44e1c5ae76b595d4e4b5db5b667d10
tree687ec686ca5b738e7331e7686bdb2e04c957f49d
parentd280e19203026287c23f9f65f3764062f0441619
taskstats: move specifying netlink policy back to ops

commit 3a446d81905e ("genetlink: make policy common to family")
had to work around removal of policy from ops by parsing in
the pre_doit callback. Now that policy is back in full ops
we can switch again. Set maxattr to actual size of the policies
- both commands set GENL_DONT_VALIDATE_STRICT so out of range
attributes will be silently ignored, anyway.

v2:
 - remove stale comment

Suggested-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/taskstats.c