From: Andrew Morton <akpm@osdl.org>
To: "d binderman" <dcb314@hotmail.com>
Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: Re: variable used before set
Date: Tue, 28 Jun 2005 03:58:53 -0700 [thread overview]
Message-ID: <20050628035853.3470e420.akpm@osdl.org> (raw)
In-Reply-To: <BAY19-F35B8A38C4A94BA62F2B5139CE10@phx.gbl>
(Add linux-scsi)
"d binderman" <dcb314@hotmail.com> wrote:
>
> Hello there,
>
> I just tried to compile the Linux Kernel version 2.6.11.12
> with the most excellent Intel C compiler. It said
>
> drivers/scsi/pcmcia/aha152x_stub.c(313): remark #592: variable "tmp" is used
> before its value is set
> tmp.device->host = info->host;
> ^
>
> This is clearly broken code, since the field tmp.device has not been
> initialised, and so isn't pointing to anything.
>
> Suggest code rework.
Yup, that will crash.
prev parent reply other threads:[~2005-06-28 11:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-28 9:14 d binderman
2005-06-28 10:58 ` Andrew Morton [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=20050628035853.3470e420.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=dcb314@hotmail.com \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®