From: Marc Bejarano <beej@beej.org>
To: linux-scsi@vger.kernel.org
Subject: Re: [PATCH]drivers/ata/libata-eh.c:1509 unneeded memset()
Date: Fri, 8 Jan 2010 22:21:09 +0000 (UTC) [thread overview]
Message-ID: <loom.20100108T231444-8@post.gmane.org> (raw)
In-Reply-To: 4B4799FB.9030208@googlemail.com
René Bolldorf <xsecute <at> googlemail.com> writes:
> On 01/08/10 16:28, James Bottomley wrote:
> > On Thu, 2010-01-07 at 14:15 -0500, Jeff Garzik wrote:
> >> On 12/30/2009 05:59 PM, René Bolldorf wrote:
> >>> We don't need this .
> >>> - /* FIXME: is this needed? */
> >>> - memset(sense_buf, 0, SCSI_SENSE_BUFFERSIZE);
> >>
> >> I need a little bit more detail than an unqualified statement... Did
> >> you audit all paths leading to this code point?
> > But one also here:
> >
> > u8 *sense_buffer = dev->link->ap->sector_buf;
> > [...]
> > err_mask = atapi_eh_request_sense(dev, sense_buffer, sense_key);
> >
> > Which doesn't look OK because it looks like the sector_buf isn't cleared
> > (and it is reused).
> >
> > James
> >
> >
>
> Thank's, you're right. I have overseen this, sry for that.
René: perhaps you'd like to submit a patch that substitutes FIXME comment
for one that explains why the memset is needed, crediting James in the
description? we may as well gain something permanent from this discussion
that you started :)
cheers,
marc
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-01-08 22:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4B3BDB66.6000008@googlemail.com>
2010-01-07 19:15 ` [PATCH]drivers/ata/libata-eh.c:1509 unneeded memset() Jeff Garzik
2010-01-07 20:34 ` René Bolldorf
2010-01-07 20:40 ` René Bolldorf
2010-01-08 11:30 ` Rolf Eike Beer
2010-01-08 15:28 ` James Bottomley
2010-01-08 20:47 ` René Bolldorf
2010-01-08 22:21 ` Marc Bejarano [this message]
[not found] <5543f88f1001111129u362be554kd97027d977b5dff3@mail.gmail.com>
2010-01-11 19:41 ` Marc Bejarano
2010-01-11 20:18 ` René Bolldorf
2010-01-12 0:55 ` Marc Bejarano
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=loom.20100108T231444-8@post.gmane.org \
--to=beej@beej.org \
--cc=linux-scsi@vger.kernel.org \
/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