mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[SCSI] qla2xxx: fix timeout in qla2x00_down_timeout
iterations is unsigned, so it is impossible to get out of the loop and return -ETIMEDOUT. Signed-off-by: Bill Nottingham <[email protected]> Acked-by: Seokmann Ju <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
f2f027c6e9
commit
88f5774b07
1 changed files with 1 additions and 1 deletions
|
|
@ -2590,7 +2590,7 @@ qla2x00_down_timeout(struct semaphore *sema, unsigned long timeout)
|
|||
return 0;
|
||||
if (msleep_interruptible(step))
|
||||
break;
|
||||
} while (--iterations >= 0);
|
||||
} while (--iterations > 0);
|
||||
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue