From: Andrew Morton <akpm@linux-foundation.org>
To: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] UDF: possible usage of uninitialized variables
Date: Tue, 22 May 2007 11:39:26 -0700 [thread overview]
Message-ID: <20070522113926.b7f1e690.akpm@linux-foundation.org> (raw)
In-Reply-To: <20070522175223.GA8259@cvg>
On Tue, 22 May 2007 21:52:23 +0400
Cyrill Gorcunov <gorcunov@gmail.com> wrote:
> A few variables could be used without being explicitly initialized.
> Fixed.
Are you sure? I'm expecting that this is a gcc mistake.
> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
> ---
>
>
> balloc.c | 6 +++++-
> super.c | 5 ++++-
> 2 files changed, 9 insertions(+), 2 deletions(-)
>
>
> diff --git a/balloc.c b/balloc.c
> index 4cec910..be37393 100644
> --- a/balloc.c
> +++ b/balloc.c
Please always use `patch -p1' form from the top-level directory. This should
have been
--- a/fs/udf/balloc.c
+++ b/fs/udf/balloc.c
> @@ -744,7 +744,11 @@ static int udf_table_new_block(struct super_block * sb,
> uint32_t spread = 0xFFFFFFFF, nspread = 0xFFFFFFFF;
> uint32_t newblock = 0, adsize;
> uint32_t elen, goal_elen = 0;
> - kernel_lb_addr eloc, goal_eloc;
> + kernel_lb_addr eloc;
> + kernel_lb_addr goal_eloc = {
> + .logicalBlockNum = 0,
> + .partitionReferenceNum = 0,
> + };
kernel_lb_addr goal_eloc = { };
is equivalent and sufficient.
next prev parent reply other threads:[~2007-05-22 18:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-22 17:52 [PATCH] UDF: possible usage of uninitialized variables Cyrill Gorcunov
2007-05-22 18:39 ` Andrew Morton [this message]
2007-05-22 20:29 ` Jan Kara
2007-05-23 14:17 ` Cyrill Gorcunov
2007-05-23 16:05 ` Cyrill Gorcunov
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=20070522113926.b7f1e690.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=gorcunov@gmail.com \
--cc=linux-kernel@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