From: "Om Narasimhan" <om.turyx@gmail.com>
To: "Matthew Wilcox" <matthew@wil.cx>
Cc: linux-pcmcia@lists.infradead.org, linux-kernel@vger.kernel.org,
kernel-janitors@lists.osdl.org
Subject: Re: [KJ] potential crash fix : drivers/pcmcia/au1000_generic
Date: Mon, 18 Sep 2006 15:54:17 -0700 [thread overview]
Message-ID: <6b4e42d10609181554s723b54f4y97a233a0a1f30657@mail.gmail.com> (raw)
In-Reply-To: <20060918110812.GP2585@parisc-linux.org>
On 9/18/06, Matthew Wilcox <matthew@wil.cx> wrote:
> On Sun, Sep 17, 2006 at 05:54:17PM -0700, Om Narasimhan wrote:
> > Tested by compiling.
> >
> > I have not subscribed to pcmcia list. Please cc me any comments.
>
> You also haven't described what the 'potential crach' is that you're
> fixing.
Okay, I should have documented that.
Here is the explanation.
The previous code did something like,
if (error) goto out_err;
....
do {
struct au1000_pcmcia_socket *skt = PCMCIA_SOCKET(i);
del_timer_sync(&skt->poll_timer);
pcmcia_unregister_socket(&skt->socket);
out_err:
flush_scheduled_work();
ops->hw_shutdown(skt);
i--;
} while (i > 0)
.....
1. On the error path, skt would not contain a valid value for the
first iteration (skt is masked by uninitialized automatic skt)
2. does not do hw_shutdown() for 0th element of PCMCIA_SOCKET
Does it sound good?
Regards,
Om.
prev parent reply other threads:[~2006-09-18 22:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-18 0:54 Om Narasimhan
2006-09-18 11:08 ` [KJ] " Matthew Wilcox
2006-09-18 22:54 ` Om Narasimhan [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=6b4e42d10609181554s723b54f4y97a233a0a1f30657@mail.gmail.com \
--to=om.turyx@gmail.com \
--cc=kernel-janitors@lists.osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pcmcia@lists.infradead.org \
--cc=matthew@wil.cx \
/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®