|
@@ -907,7 +907,9 @@ static int nfc_genl_activate_target(struct sk_buff *skb, struct genl_info *info)
|
|
|
u32 device_idx, target_idx, protocol;
|
|
|
int rc;
|
|
|
|
|
|
- if (!info->attrs[NFC_ATTR_DEVICE_INDEX])
|
|
|
+ if (!info->attrs[NFC_ATTR_DEVICE_INDEX] ||
|
|
|
+ !info->attrs[NFC_ATTR_TARGET_INDEX] ||
|
|
|
+ !info->attrs[NFC_ATTR_PROTOCOLS])
|
|
|
return -EINVAL;
|
|
|
|
|
|
device_idx = nla_get_u32(info->attrs[NFC_ATTR_DEVICE_INDEX]);
|