mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
nfc: signedness bug in __nci_request()
wait_for_completion_interruptible_timeout() returns -ERESTARTSYS if interrupted so completion_rc needs to be signed. The current code probably returns -ETIMEDOUT if we hit this situation, but after this patch is applied it will return -ERESTARTSYS. Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
123877b80e
commit
f8c141c3e9
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ static int __nci_request(struct nci_dev *ndev,
|
|||
__u32 timeout)
|
||||
{
|
||||
int rc = 0;
|
||||
unsigned long completion_rc;
|
||||
long completion_rc;
|
||||
|
||||
ndev->req_status = NCI_REQ_PEND;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue