public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 29/29] bug in gdth.c crashing machine
@ 2007-03-06 10:46 akpm
  2007-03-07 17:28 ` James Bottomley
  0 siblings, 1 reply; 8+ messages in thread
From: akpm @ 2007-03-06 10:46 UTC (permalink / raw)
  To: James.Bottomley; +Cc: linux-scsi, akpm, joerg, Achim_Leubner, stable

From: Joerg Dorchain <joerg@dorchain.net>

Undocumented...

Signed-off-by: Joerg Dorchain <joerg@dorchain.net>
Acked-by: "Leubner, Achim" <Achim_Leubner@adaptec.com>
Cc: <stable@kernel.org>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/scsi/gdth.c |    2 ++
 1 file changed, 2 insertions(+)

diff -puN drivers/scsi/gdth.c~bug-in-gdthc-crashing-machine drivers/scsi/gdth.c
--- a/drivers/scsi/gdth.c~bug-in-gdthc-crashing-machine
+++ a/drivers/scsi/gdth.c
@@ -3091,6 +3091,7 @@ static int gdth_fill_raw_cmd(int hanum,S
             cmdp->u.raw64.direction  = 
                 gdth_direction_tab[scp->cmnd[0]]==DOU ? GDTH_DATA_OUT:GDTH_DATA_IN;
             memcpy(cmdp->u.raw64.cmd,scp->cmnd,16);
+            cmdp->u.raw64.sg_ranz    = 0;
         } else {
             cmdp->u.raw.reserved   = 0;
             cmdp->u.raw.mdisc_time = 0;
@@ -3107,6 +3108,7 @@ static int gdth_fill_raw_cmd(int hanum,S
             cmdp->u.raw.direction  = 
                 gdth_direction_tab[scp->cmnd[0]]==DOU ? GDTH_DATA_OUT:GDTH_DATA_IN;
             memcpy(cmdp->u.raw.cmd,scp->cmnd,12);
+            cmdp->u.raw.sg_ranz    = 0;
         }
 
         if (scp->use_sg) {
_

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

end of thread, other threads:[~2007-03-11 16:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-06 10:46 [patch 29/29] bug in gdth.c crashing machine akpm
2007-03-07 17:28 ` James Bottomley
2007-03-07 17:40   ` [stable] " Greg KH
2007-03-07 19:16     ` Andrew Morton
2007-03-07 20:05       ` Joerg Dorchain
2007-03-08  0:50       ` James Bottomley
2007-03-09 18:36         ` Greg KH
2007-03-11 16:03           ` James Bottomley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox