diff --git a/drivers/nfc/port100.c b/drivers/nfc/port100.c index 2d4bbe3fad57d38432a1df4c76bd56d07bd632cf..14a3cc2d0fd6cb2e27382abc4fd780b72052fb21 100644 --- a/drivers/nfc/port100.c +++ b/drivers/nfc/port100.c @@ -809,6 +809,12 @@ static int port100_send_cmd_async(struct port100 *dev, u8 cmd_code, PORT100_FRAME_MAX_PAYLOAD_LEN + PORT100_FRAME_TAIL_LEN; + if (dev->cmd) { + nfc_err(&dev->interface->dev, + "A command is still in process\n"); + return -EBUSY; + } + resp = alloc_skb(resp_len, GFP_KERNEL); if (!resp) return -ENOMEM;