Skip to content

Commit

Permalink
NFC: digital: Set the command pending flag
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thierry Escande authored and Samuel Ortiz committed Jul 6, 2016
1 parent 82e5795 commit af66df0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/nfc/digital_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit af66df0

Please sign in to comment.