All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -stable] fix USB_STORAGE_CYPRESS_ATACB
@ 2008-12-29 18:15 matthieu castet
  2008-12-29 19:24 ` Matthew Dharm
  0 siblings, 1 reply; 8+ messages in thread
From: matthieu castet @ 2008-12-29 18:15 UTC (permalink / raw)
  To: LKML, stable, linux-usb; +Cc: Matthew Dharm, Boaz Harrosh

[-- Attachment #1: Type: text/plain, Size: 142 bytes --]

Hi,

64a87b244b9297667ca80264aab849a36f494884 broke USB_STORAGE_CYPRESS_ATACB 
translation.

Could it be applied to kernel-stable ?

Matthieu

[-- Attachment #2: cypress_atacb_fix.diff --]
[-- Type: text/x-patch, Size: 894 bytes --]


64a87b244b9297667ca80264aab849a36f494884 commit change the scsi_eh_prep_cmnd logic by making it clear the ->cmnd buffer.

But the sat to cypress atacb translation supposed the ->cmnd buffer wasn't modified.

This patch makes it set the ->cmnd buffer after scsi_eh_prep_cmnd call.


Signed-off-by: Matthieu CASTET <castet.matthieu@free.fr>
diff --git a/drivers/usb/storage/cypress_atacb.c b/drivers/usb/storage/cypress_atacb.c
index 898e67d..526c9aa 100644
--- a/drivers/usb/storage/cypress_atacb.c
+++ b/drivers/usb/storage/cypress_atacb.c
@@ -143,6 +143,8 @@ void cypress_atacb_passthrough(struct scsi_cmnd *srb, struct us_data *us)
 		 * the read taskfile bit, for not executing atacb command,
 		 * but reading register selected in srb->cmnd[4]
 		 */
+		srb->cmd_len = 16;
+		memcpy(srb->cmnd, ses.cmnd, srb->cmd_len);
 		srb->cmnd[2] = 1;
 
 		usb_stor_transparent_scsi_command(srb, us);

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-02-11  7:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-29 18:15 [PATCH -stable] fix USB_STORAGE_CYPRESS_ATACB matthieu castet
2008-12-29 19:24 ` Matthew Dharm
2008-12-30 16:07   ` Boaz Harrosh
2008-12-31 10:35     ` Boaz Harrosh
2009-01-01 22:47       ` matthieu castet
2009-02-09 19:49         ` matthieu castet
2009-02-11  7:54     ` [PATCH -stable resend] " Boaz Harrosh
2009-02-11  7:54       ` Boaz Harrosh

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.