]> git.baikalelectronics.ru Git - kernel.git/commit
nfc: add missing attribute validation for deactivate target
authorJakub Kicinski <kuba@kernel.org>
Tue, 3 Mar 2020 05:05:25 +0000 (21:05 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Mar 2020 21:28:49 +0000 (13:28 -0800)
commitbd1633ea0b110e1248d3fe02b05921add0e4aa0d
treecf2c63d71b90b286eff37d8721dd127f4f6aeea9
parentd217395115a8094530afe6428d6cd02698c18d93
nfc: add missing attribute validation for deactivate target

Add missing attribute validation for NFC_ATTR_TARGET_INDEX
to the netlink policy.

Fixes: 8781359f9a45 ("NFC: Add NFC_CMD_DEACTIVATE_TARGET support")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/nfc/netlink.c