aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorJohannes Berg <[email protected]>2018-09-26 09:15:32 +0000
committerDavid S. Miller <[email protected]>2018-09-28 17:24:39 +0000
commitc29f1845b2b22974411278bad3a2ac0b7815dfb4 (patch)
tree068b778699737fdf5bc184913423daa334412c1a /drivers/net/xen-netback/interface.c
parentnetlink: make validation_data const (diff)
downloadkernel-c29f1845b2b22974411278bad3a2ac0b7815dfb4.tar.gz
kernel-c29f1845b2b22974411278bad3a2ac0b7815dfb4.zip
netlink: move extack setting into validate_nla()
This unifies the code between nla_parse() which sets the bad attribute pointer and an error message, and nla_validate() which only sets the bad attribute pointer. It also cleans up the code for NLA_REJECT and paves the way for nested policy validation, as it will allow us to easily skip setting the "generic" message without any extra args like the **error_msg now, just passing the extack through is now enough. While at it, remove the unnecessary label in nla_parse(). Suggested-by: David Ahern <[email protected]> Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions