Re: 2.0.31pre9 and aic7xxx

Gordon Oliver (gordo@telsur.cl)
Thu, 11 Sep 1997 13:57:16 -0400 (CST)


...Philip Blundell says...:
> BTW, I'm getting these when I read from the aic7xxx driver's /proc file:
>
> aic7xxx: possible overflow at loop 0:8
> aic7xxx: possible overflow at loop 0:8
> aic7xxx: possible overflow at loop 3:8

hey... that's the patch that I sent...
It means that the size of the stuff being printed is at the limit of where
it should be....

try this patch (in drivers/scsi). let me know if it works.
it will move a test inside the loop.
the "possible overflow" warning is very unlikely to cause real overflow, but
it might...

--- aic7xxx_proc.c.orig Thu Sep 11 13:54:35 1997
+++ aic7xxx_proc.c Thu Sep 11 13:53:45 1997
@@ -266,7 +266,6 @@
size += sprintf(BLS, "%6ld %6ld\n", sp->w_bins[8],
sp->w_bins[9]);
size += sprintf(BLS, "\n");
- }
if (size > 512)
printk(KERN_CRIT "aic7xxx: possible overflow at loop %d:%d\n", target, lun);
len += size; pos = begin + len; size = 0;
@@ -277,6 +276,7 @@
}
else if (pos >= offset + length)
goto stop_output;
+ }
}
}
}