aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_debug.c
diff options
context:
space:
mode:
authorRanjan Kumar <[email protected]>2024-10-08 07:43:53 +0000
committerMartin K. Petersen <[email protected]>2024-10-16 02:17:17 +0000
commitb9e63d6c7c0e94a99e1af7c9c0c7fad13a2f2453 (patch)
treed9e73636a0793543c8ab31b0fe90a549a6a62b6a /drivers/scsi/scsi_debug.c
parentscsi: ufs: core: Set SDEV_OFFLINE when UFS is shut down (diff)
downloadkernel-b9e63d6c7c0e94a99e1af7c9c0c7fad13a2f2453.tar.gz
kernel-b9e63d6c7c0e94a99e1af7c9c0c7fad13a2f2453.zip
scsi: mpi3mr: Validate SAS port assignments
A sanity check on phy_mask was added in commit 3668651def2c ("scsi: mpi3mr: Sanitise num_phys"). This causes warning messages when more than 64 phys are detected and devices connected to phys greater than 64 are dropped. The phy_mask bitmap is only needed for controller phys and not required for expander phys. Controller phys can go up to a maximum of 64 and therefore u64 is good enough to contain phy_mask bitmap. To suppress those warnings and allow devices to be discovered as before the offending commit, restrict the phy_mask setting and lowest phy setting only to the controller phys. Fixes: 3668651def2c ("scsi: mpi3mr: Sanitise num_phys") Cc: [email protected] Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Reported-by: Alexander Motin <[email protected]> Signed-off-by: Ranjan Kumar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/scsi/scsi_debug.c')
0 files changed, 0 insertions, 0 deletions