scsi: mpi3mr: Sanitise num_phys
authorTomas Henzl <thenzl@redhat.com>
Mon, 26 Feb 2024 15:10:13 +0000 (16:10 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 9 May 2024 01:40:33 +0000 (21:40 -0400)
commit3668651def2c1622904e58b0280ee93121f2b10b
treebe5fb1d1a416d7605b0ff044dee6e80b56e7c3ec
parent40ae6a1ee5fd8079e895295c2cf18fd5d15867e1
scsi: mpi3mr: Sanitise num_phys

Information is stored in mr_sas_port->phy_mask, values larger then size of
this field shouldn't be allowed.

Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Link: https://lore.kernel.org/r/20240226151013.8653-1-thenzl@redhat.com
Acked-by: Sathya Prakash Veerichetty <sathya.prakash@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpi3mr/mpi3mr_transport.c
This page took 0.053807 seconds and 4 git commands to generate.