From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: linux-kernel@vger.kernel.org, marcelo@conectiva.com
Subject: PATCH: clear mp bus array properly
Date: Mon, 14 Jul 2003 13:13:41 +0100 [thread overview]
Message-ID: <200307141213.h6ECDfCM030830@hraefn.swansea.linux.org.uk> (raw)
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.22-pre5/arch/i386/kernel/mpparse.c linux.22-pre5-ac1/arch/i386/kernel/mpparse.c
--- linux.22-pre5/arch/i386/kernel/mpparse.c 2003-07-14 12:27:32.000000000 +0100
+++ linux.22-pre5-ac1/arch/i386/kernel/mpparse.c 2003-07-14 12:37:23.000000000 +0100
@@ -516,7 +519,7 @@
mp_bus_id_to_local = (int *)&bus_data[(max_mp_busses * sizeof(int)) * 2];
mp_bus_id_to_pci_bus = (int *)&bus_data[(max_mp_busses * sizeof(int)) * 3];
mp_irqs = (struct mpc_config_intsrc *)&bus_data[(max_mp_busses * sizeof(int)) * 4];
- memset(mp_bus_id_to_pci_bus, -1, max_mp_busses);
+ memset(mp_bus_id_to_pci_bus, -1, max_mp_busses * sizeof(int));
/*
* Now process the configuration blocks.
reply other threads:[~2003-07-14 12:00 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=200307141213.h6ECDfCM030830@hraefn.swansea.linux.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@conectiva.com \
/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®