Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 756858 Details for
Bug 827730
sys-kernel/gentoo-sources-5.15.5 libata reversion causing read cache cannot be read errors.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for kernel-5.15.5
c749301ebee82eb5e97dec14b6ab31a4aabe37a6.patch (text/plain), 1.29 KB, created by
Harris Landgarten
on 2021-11-28 18:46:30 UTC
(
hide
)
Description:
patch for kernel-5.15.5
Filename:
MIME Type:
Creator:
Harris Landgarten
Created:
2021-11-28 18:46:30 UTC
Size:
1.29 KB
patch
obsolete
>From c749301ebee82eb5e97dec14b6ab31a4aabe37a6 Mon Sep 17 00:00:00 2001 >From: Damien Le Moal <damien.lemoal@wdc.com> >Date: Fri, 20 Aug 2021 16:02:55 +0900 >Subject: [PATCH] scsi: sd: Fix sd_do_mode_sense() buffer length handling > >For devices that explicitly asked for MODE SENSE(10) use, make sure that >scsi_mode_sense() is called with a buffer of at least 8 bytes so that the >sense header fits. > >Link: https://lore.kernel.org/r/20210820070255.682775-4-damien.lemoal@wdc.com >Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> >Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> >--- > drivers/scsi/sd.c | 7 +++++++ > 1 file changed, 7 insertions(+) > >diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c >index cbd9999f93a6b2..71fa70b42c2b43 100644 >--- a/drivers/scsi/sd.c >+++ b/drivers/scsi/sd.c >@@ -2604,6 +2604,13 @@ sd_do_mode_sense(struct scsi_disk *sdkp, int dbd, int modepage, > unsigned char *buffer, int len, struct scsi_mode_data *data, > struct scsi_sense_hdr *sshdr) > { >+ /* >+ * If we must use MODE SENSE(10), make sure that the buffer length >+ * is at least 8 bytes so that the mode sense header fits. >+ */ >+ if (sdkp->device->use_10_for_ms && len < 8) >+ len = 8; >+ > return scsi_mode_sense(sdkp->device, dbd, modepage, buffer, len, > SD_TIMEOUT, sdkp->max_retries, data, > sshdr);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 827730
: 756858