that stupid aic7xxx AHC_NSEGS bug

From: David S. Miller (
Date: Thu Dec 13 2001 - 15:42:05 EST

We simply forget to initialize scb->sg_count in the non use_sg
case, so if the previous usage of that scb has sg_count==AHC_NSEGS
then we'd hit that panic erroneously. Here is the fix below.

"It can't possibly be my driver, something broke in some Linux
subsystem which is making my driver break", sheesh get over it

--- drivers/scsi/aic7xxx/aic7xxx_linux.c.~1~ Fri Dec 7 22:54:31 2001
+++ drivers/scsi/aic7xxx/aic7xxx_linux.c Thu Dec 13 12:38:30 2001
@@ -1699,6 +1699,7 @@
+ scb->sg_count = 0;
                         scb->sg_count = ahc_linux_map_seg(ahc, scb,
                                                           sg, addr,
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sat Dec 15 2001 - 21:00:27 EST