* Patch "libata-scsi: Fixup ata_gen_passthru_sense()" has been added to the 4.8-stable tree
@ 2016-12-02 17:11 gregkh
0 siblings, 0 replies; only message in thread
From: gregkh @ 2016-12-02 17:11 UTC (permalink / raw)
To: hare, csm10495, gregkh, hare, tj; +Cc: stable, stable-commits
This is a note to let you know that I've just added the patch titled
libata-scsi: Fixup ata_gen_passthru_sense()
to the 4.8-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
libata-scsi-fixup-ata_gen_passthru_sense.patch
and it can be found in the queue-4.8 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.
>From e0029dcb5b6e1c23e68f578ce7a3d6c5caba0501 Mon Sep 17 00:00:00 2001
From: Hannes Reinecke <hare@suse.de>
Date: Mon, 31 Oct 2016 21:06:58 +0100
Subject: libata-scsi: Fixup ata_gen_passthru_sense()
From: Hannes Reinecke <hare@suse.de>
commit e0029dcb5b6e1c23e68f578ce7a3d6c5caba0501 upstream.
There's a typo in ata_gen_passthru_sense(), where the first byte
would be overwritten incorrectly later on.
Reported-by: Charles Machalow <csm10495@gmail.com>
Signed-off-by: Hannes Reinecke <hare@suse.com>
Fixes: 11093cb1ef56 ("libata-scsi: generate correct ATA pass-through sense")
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/ata/libata-scsi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
@@ -1088,7 +1088,7 @@ static void ata_gen_passthru_sense(struc
desc[1] = tf->command; /* status */
desc[2] = tf->device;
desc[3] = tf->nsect;
- desc[0] = 0;
+ desc[7] = 0;
if (tf->flags & ATA_TFLAG_LBA48) {
desc[8] |= 0x80;
if (tf->hob_nsect)
Patches currently in stable-queue which might be from hare@suse.de are
queue-4.8/scsi-hpsa-use-bus-3-for-legacy-hba-devices.patch
queue-4.8/libata-scsi-fixup-ata_gen_passthru_sense.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-12-02 17:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-02 17:11 Patch "libata-scsi: Fixup ata_gen_passthru_sense()" has been added to the 4.8-stable tree gregkh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.