]> 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>
Sat, 23 Sep 2023 08:46:58 +0000 (10:46 +0200)
commitcb76e9ab54a22d9a0542c78e4ae1c3dd996e8c2d
tree9ea9d9df1fd8d8ed562381c4d7558d8bcc1e2979
parent3bb207a29e3d38afd283dda5ea6ba8f2029d0def
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