]> git.ipfire.org Git - thirdparty/linux.git/commit
scsi: mpi3mr: Correct a test in mpi3mr_sas_port_add()
authorTomas Henzl <thenzl@redhat.com>
Thu, 27 Jun 2024 07:48:27 +0000 (09:48 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 5 Jul 2024 02:40:32 +0000 (22:40 -0400)
commitde24085328c09e5a6dd8a8d95ad65876f097e9c1
treeb42ea08cc4c53171d36f578eecb4d8765ca6e967
parent06b91c00db396fafeed4c3201597bf3ed8261511
scsi: mpi3mr: Correct a test in mpi3mr_sas_port_add()

The test for a possible shift overflow is not correct. Fix it by replacing
the '>' with a '>='.

Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Link: https://lore.kernel.org/r/20240627074827.13672-1-thenzl@redhat.com
Suggested-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpi3mr/mpi3mr_transport.c