diff options
author | Jakub Kicinski <kuba@kernel.org> | 2020-03-02 21:05:16 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-03 13:28:48 -0800 |
commit | ab02ad660586b94f5d08912a3952b939cf4c4430 (patch) | |
tree | 7354e5e296dd4028595e3c8b490ea609b635cfbf /drivers/net | |
parent | b60673c4c418bef7550d02faf53c34fbfeb366bf (diff) | |
download | linux-ab02ad660586b94f5d08912a3952b939cf4c4430.tar.bz2 |
can: add missing attribute validation for termination
Add missing attribute validation for IFLA_CAN_TERMINATION
to the netlink policy.
Fixes: 12a6075cabc0 ("can: dev: add CAN interface termination API")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/can/dev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/can/dev.c b/drivers/net/can/dev.c index 6ee06a49fb4c..68834a2853c9 100644 --- a/drivers/net/can/dev.c +++ b/drivers/net/can/dev.c @@ -883,6 +883,7 @@ static const struct nla_policy can_policy[IFLA_CAN_MAX + 1] = { = { .len = sizeof(struct can_bittiming) }, [IFLA_CAN_DATA_BITTIMING_CONST] = { .len = sizeof(struct can_bittiming_const) }, + [IFLA_CAN_TERMINATION] = { .type = NLA_U16 }, }; static int can_validate(struct nlattr *tb[], struct nlattr *data[], |