Skip to content

Commit 6ba3da4

Browse files
kuba-moodavem330
authored andcommitted
nfc: add missing attribute validation for vendor subcommand
Add missing attribute validation for vendor subcommand attributes to the netlink policy. Fixes: 9e58095 ("NFC: netlink: Implement vendor command support") Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 88e706d commit 6ba3da4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/nfc/netlink.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ static const struct nla_policy nfc_genl_policy[NFC_ATTR_MAX + 1] = {
4646
.len = NFC_FIRMWARE_NAME_MAXSIZE },
4747
[NFC_ATTR_SE_INDEX] = { .type = NLA_U32 },
4848
[NFC_ATTR_SE_APDU] = { .type = NLA_BINARY },
49+
[NFC_ATTR_VENDOR_ID] = { .type = NLA_U32 },
50+
[NFC_ATTR_VENDOR_SUBCMD] = { .type = NLA_U32 },
4951
[NFC_ATTR_VENDOR_DATA] = { .type = NLA_BINARY },
5052

5153
};

0 commit comments

Comments
 (0)