From: Thierry Escande Date: Thu, 16 Jun 2016 18:24:44 +0000 (+0200) Subject: NFC: digital: Set the command pending flag X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=af66df0f53b9120437556d8eb00d70a36e791258;p=linux-beck.git 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 Signed-off-by: Samuel Ortiz --- diff --git a/net/nfc/digital_core.c b/net/nfc/digital_core.c index 6e0b255aec66..0146e42ee28f 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)