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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- "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 
-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux