From: Matt Porter <mporter@kernel.crashing.org>
To: akpm@osdl.org
Cc: linux-kernel@vger.kernel.org, linuxppc-embedded@ozlabs.org
Subject: [PATCH][PPC32] Fix uninitialized PPC40x vars
Date: Tue, 23 Nov 2004 09:19:04 -0700 [thread overview]
Message-ID: <20041123091904.B24513@home.com> (raw)
Fix more uninitialized variables in the PPC40x code.
Signed-off-by: Matt Porter <mporter@kernel.crashing.org>
===== arch/ppc/boot/simple/misc-embedded.c 1.14 vs edited =====
--- 1.14/arch/ppc/boot/simple/misc-embedded.c 2004-09-07 23:33:06 -07:00
+++ edited/arch/ppc/boot/simple/misc-embedded.c 2004-11-23 09:15:34 -07:00
@@ -218,7 +218,7 @@
puts("done.\n");
{
struct bi_record *rec;
- unsigned long initrd_loc;
+ unsigned long initrd_loc = 0;
unsigned long rec_loc = _ALIGN((unsigned long)(zimage_size) +
(1 << 20) - 1, (1 << 20));
rec = (struct bi_record *)rec_loc;
===== arch/ppc/syslib/ppc405_pci.c 1.9 vs edited =====
--- 1.9/arch/ppc/syslib/ppc405_pci.c 2004-05-14 19:00:24 -07:00
+++ edited/arch/ppc/syslib/ppc405_pci.c 2004-11-23 09:15:03 -07:00
@@ -82,8 +82,8 @@
unsigned int tmp_addr;
unsigned int tmp_size;
unsigned int reg_index;
- unsigned int new_pmm_max;
- unsigned int new_pmm_min;
+ unsigned int new_pmm_max = 0;
+ unsigned int new_pmm_min = 0;
isa_io_base = 0;
isa_mem_base = 0;
reply other threads:[~2004-11-23 16:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20041123091904.B24513@home.com \
--to=mporter@kernel.crashing.org \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-embedded@ozlabs.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;
as well as URLs for NNTP newsgroup(s).