diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2022-07-07 23:20:43 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-07-07 23:20:43 +0200 |
commit | 11e50ed239b5b7f383874dd737283ae93f62ece3 (patch) | |
tree | 6f990dd80caf1efee86926541b30cad9e2003cef /drivers/scsi/sd.c | |
parent | scsi: sd: Rework asynchronous resume support (diff) | |
parent | scsi: hisi_sas: Limit max hw sectors for v3 HW (diff) | |
download | linux-11e50ed239b5b7f383874dd737283ae93f62ece3.tar.xz linux-11e50ed239b5b7f383874dd737283ae93f62ece3.zip |
Merge branch '5.19/scsi-fixes' into 5.20/scsi-staging
Bring in fixes to resolve a merge conflict in the lpfc driver update.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/sd.c')
-rw-r--r-- | drivers/scsi/sd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index 84696b3652ee..081e39b3543b 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -3073,7 +3073,7 @@ static void sd_read_cpr(struct scsi_disk *sdkp) goto out; /* We must have at least a 64B header and one 32B range descriptor */ - vpd_len = get_unaligned_be16(&buffer[2]) + 3; + vpd_len = get_unaligned_be16(&buffer[2]) + 4; if (vpd_len > buf_len || vpd_len < 64 + 32 || (vpd_len & 31)) { sd_printk(KERN_ERR, sdkp, "Invalid Concurrent Positioning Ranges VPD page\n"); |