diff options
Diffstat (limited to 'net/nfc/netlink.c')
-rw-r--r-- | net/nfc/netlink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/nfc/netlink.c b/net/nfc/netlink.c index 1180b3e58a0a..ea64c90b14e8 100644 --- a/net/nfc/netlink.c +++ b/net/nfc/netlink.c | |||
@@ -911,7 +911,8 @@ static int nfc_genl_deactivate_target(struct sk_buff *skb, | |||
911 | u32 device_idx, target_idx; | 911 | u32 device_idx, target_idx; |
912 | int rc; | 912 | int rc; |
913 | 913 | ||
914 | if (!info->attrs[NFC_ATTR_DEVICE_INDEX]) | 914 | if (!info->attrs[NFC_ATTR_DEVICE_INDEX] || |
915 | !info->attrs[NFC_ATTR_TARGET_INDEX]) | ||
915 | return -EINVAL; | 916 | return -EINVAL; |
916 | 917 | ||
917 | device_idx = nla_get_u32(info->attrs[NFC_ATTR_DEVICE_INDEX]); | 918 | device_idx = nla_get_u32(info->attrs[NFC_ATTR_DEVICE_INDEX]); |