]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: core: Use 32-bit hostnum in scsi_host_lookup()
authorTony Battersby <tonyb@cybernetics.com>
Mon, 14 Aug 2023 14:03:25 +0000 (10:03 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Sep 2023 10:22:47 +0000 (12:22 +0200)
commitc4772759abe1b736878ed5e5d05aa31efc06a368
tree93024a6cbdfc91310c60de0423a21877d66c2948
parent6248f4305378285e5cde74ffdb249c9ea3ba7cf0
scsi: core: Use 32-bit hostnum in scsi_host_lookup()

[ Upstream commit 62ec2092095b678ff89ce4ba51c2938cd1e8e630 ]

Change scsi_host_lookup() hostnum argument type from unsigned short to
unsigned int to match the type used everywhere else.

Fixes: 6d49f63b415c ("[SCSI] Make host_no an unsigned int")
Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
Link: https://lore.kernel.org/r/a02497e7-c12b-ef15-47fc-3f0a0b00ffce@cybernetics.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/hosts.c
include/scsi/scsi_host.h