]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: mpi3mr: Return complete ioc_status for ioctl commands
authorRanjan Kumar <ranjan.kumar@broadcom.com>
Thu, 8 Aug 2024 12:54:16 +0000 (18:24 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Aug 2024 01:59:12 +0000 (21:59 -0400)
commit6dc7050d46713591f4d9e1030b92b964287037ec
tree6226bf0c868410affc7eda950f26bec5507c1733
parentff30732014f5a54f0f97fb7ae9259da833c468d0
scsi: mpi3mr: Return complete ioc_status for ioctl commands

The driver masked the loginfo available bit in the iocstatus before passing
it to the applications, causing a mismatch in error messages between Linux
and other operating systems.

Modify driver to return unmasked (complete) iocstatus, including the
loginfo available bit, for the MPI commands sent through the ioctl
interface.

Co-developed-by: Sathya Prakash <sathya.prakash@broadcom.com>
Signed-off-by: Sathya Prakash <sathya.prakash@broadcom.com>
Signed-off-by: Ranjan Kumar <ranjan.kumar@broadcom.com>
Link: https://lore.kernel.org/r/20240808125418.8832-2-ranjan.kumar@broadcom.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpi3mr/mpi3mr_fw.c