NFC: digital: Set the command pending flag
authorThierry Escande <thierry.escande@collabora.com>
Thu, 16 Jun 2016 18:24:44 +0000 (20:24 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 6 Jul 2016 08:10:34 +0000 (10:10 +0200)
There is a flag in the command structure indicating that this command is
pending. It was checked before sending the command to not send the same
command twice but it was actually never set. This is now fixed.

Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/digital_core.c

index 6e0b255aec6606ef9741b0ebddfe6f35be45ab2c..0146e42ee28f402c98cd784d4f8b2c1e50cfc54f 100644 (file)
@@ -176,6 +176,8 @@ static void digital_wq_cmd(struct work_struct *work)
                return;
        }
 
+       cmd->pending = 1;
+
        mutex_unlock(&ddev->cmd_lock);
 
        if (cmd->req)