aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/garbage.c
diff options
context:
space:
mode:
authorChandrakanth Patil <[email protected]>2025-04-02 19:37:34 +0000
committerMartin K. Petersen <[email protected]>2025-04-03 15:16:19 +0000
commitaad9945623ab4029ae7789609fb6166c97976c62 (patch)
tree258e43d6a08453814e4c12568cf3734476d55fd8 /net/unix/garbage.c
parentscsi: scsi_transport_srp: Replace min/max nesting with clamp() (diff)
downloadkernel-aad9945623ab4029ae7789609fb6166c97976c62.tar.gz
kernel-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 <[email protected]> Signed-off-by: Chandrakanth Patil <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Tested-by: Ryan Lahfa <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions