diff options
| author | 2026-05-11 12:53:17 -0500 | |
|---|---|---|
| committer | 2026-05-14 22:02:52 -0400 | |
| commit | 6ea68a8dc7d2711504d944811981a5304af7d7a9 (patch) | |
| tree | c27e9eab95b6f7e2c8414681d977c79da8d38504 /include/linux/amba/ssh:/git@git.zx2c4.com | |
| parent | Merge branch '7.1/scsi-queue' into 7.1/scsi-fixes (diff) | |
scsi: sd: Fix return code handling in sd_spinup_disk()
As found by smatch-ci, scsi_execute_cmd() can return negative or positve
values so we should use a int instead of unsigned int.
Fixes: b4d0c33a32c3 ("scsi: sd: Fix sshdr use in sd_spinup_disk")
Reported-by: Dan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/linux-scsi/agFbI7E6JQwd3wGW@stanley.mountain/T/#u
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20260511175317.114007-1-michael.christie@oracle.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/linux/amba/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
