aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Escande <thierry.escande@collabora.com>2016-06-16 20:24:44 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2016-07-06 10:10:34 +0200
commitaf66df0f53b9120437556d8eb00d70a36e791258 (patch)
tree2c0d08d8c47647182c4788c0742043b78e5d45c6
parent82e57952869fbbdf09d8f9e7ac284df13741e93d (diff)
NFC: digital: Set the command pending flag
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>
-rw-r--r--net/nfc/digital_core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/nfc/digital_core.c b/net/nfc/digital_core.c
index 6e0b255..0146e42 100644
--- a/net/nfc/digital_core.c
+++ b/net/nfc/digital_core.c
@@ -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)