lkml.org 
[lkml]   [2006]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] Fix bug: accessing past end of array.
    --- "Randy.Dunlap" <rdunlap@xenotime.net> 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@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-06-26 05:20    [W:0.026 / U:28.976 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site