nfc: add missing attribute validation for deactivate target
authorJakub Kicinski <kuba@kernel.org>
Tue, 3 Mar 2020 05:05:25 +0000 (21:05 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2020 06:14:17 +0000 (07:14 +0100)
commitb198061962a94a15e9d306b0f625e722b32ce769
tree523cbd12fbf660177dba4630124babea47169e9d
parentae855e782d4d640cc10f68a6cf371484b723f14c
nfc: add missing attribute validation for deactivate target

[ Upstream commit 88e706d5168b07df4792dbc3d1bc37b83e4bd74d ]

Add missing attribute validation for NFC_ATTR_TARGET_INDEX
to the netlink policy.

Fixes: 4d63adfe12dd ("NFC: Add NFC_CMD_DEACTIVATE_TARGET support")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/nfc/netlink.c