Re: [PATCH] Fix bug: accessing past end of array.

From: Alex Davis
Date: Sun Jun 25 2006 - 23:16:51 EST


--- "Randy.Dunlap" <rdunlap@xxxxxxxxxxxx> wrote:

> [adding linux-scsi]
>
> On Sun, 25 Jun 2006 19:06:46 -0700 (PDT) Alex Davis wrote:
>
> > If the card is re-inserted 2 or more times, we access elements
> > past the end of the aha152x_host array.
>
> When I was testing/reproducing this, I observed that removing
> the card did not cause the aha152x_detach() function to be called
> (in drivers/scsi/pcmcia/aha152x_stub.c). However, I didn't
> find out why that doesn't happen. I think fixing this would
> be a big help.
>
Strange. I'm not having that problem. I even added a printk to verify.
I get the following in my logs:

[4295091.671000] pccard: card ejected from slot 0
[4295091.671000] aha152x_detach(0xd8877600) <-----added printk.



> > Also correct spelling errors.
> >
> > This is for 2.6.17.
> >
> > Signed-off-by Alex Davis <alex14641 at yahoo dot com>
> > =========================================================================
> > diff -u linux-2.6.17.1-orig/drivers/scsi/aha152x.c linux-2.6.17.1/drivers/scsi/aha152x.c
[snip]

I code, therefore I am

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/