Преглед на файлове

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>
Thierry Escande преди 9 години
родител
ревизия
af66df0f53
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      net/nfc/digital_core.c

+ 2 - 0
net/nfc/digital_core.c

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