mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alex Davis <alex14641@yahoo.com>
To: "Randy.Dunlap" <rdunlap@xenotime.net>
Cc: linux-kernel@vger.kernel.org, scsi <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] Fix bug: accessing past end of array.
Date: Sun, 25 Jun 2006 20:18:05 -0700 (PDT)	[thread overview]
Message-ID: <20060626031805.41634.qmail@web50412.mail.yahoo.com> (raw)
In-Reply-To: <20060625192827.730f1a8d.rdunlap@xenotime.net>

--- "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 

      reply	other threads:[~2006-06-26  3:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-26  2:06 Alex Davis
2006-06-26  2:28 ` Randy.Dunlap
2006-06-26  3:18   ` Alex Davis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060626031805.41634.qmail@web50412.mail.yahoo.com \
    --to=alex14641@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=rdunlap@xenotime.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®