diff options
author | 2025-04-03 01:07:34 +0530 | |
---|---|---|
committer | 2025-04-03 11:16:19 -0400 | |
commit | aad9945623ab4029ae7789609fb6166c97976c62 (patch) | |
tree | 258e43d6a08453814e4c12568cf3734476d55fd8 /scripts/lib/kdoc/kdoc_parser.py | |
parent | scsi: scsi_transport_srp: Replace min/max nesting with clamp() (diff) | |
download | wireguard-linux-aad9945623ab4029ae7789609fb6166c97976c62.tar.xz wireguard-linux-aad9945623ab4029ae7789609fb6166c97976c62.zip |
scsi: megaraid_sas: Block zero-length ATA VPD inquiry
A firmware bug was observed where ATA VPD inquiry commands with a
zero-length data payload were not handled and failed with a non-standard
status code of 0xf0.
Avoid sending ATA VPD inquiry commands without data payload by setting
the device no_vpd_size flag to 1. In addition, if the firmware returns a
status code of 0xf0, set scsi_cmnd->result to CHECK_CONDITION to
facilitate proper error handling.
Suggested-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Chandrakanth Patil <chandrakanth.patil@broadcom.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20250402193735.5098-1-chandrakanth.patil@broadcom.com
Tested-by: Ryan Lahfa <ryan@lahfa.xyz>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions