From: Keith Owens <kaos@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: [patch] 2.6.5-rc2 salinfo oemdata race fix
Date: Mon, 22 Mar 2004 03:11:35 +0000 [thread overview]
Message-ID: <5785.1079925095@kao2.melbourne.sgi.com> (raw)
sn_oemdata_* variables must only be used under the sn_oemdata_mutex.
--- linux-2.6.5-rc2.orig/arch/ia64/sn/kernel/mca.c
+++ linux-2.6.5-rc2/arch/ia64/sn/kernel/mca.c
@@ -108,6 +108,7 @@
down(&sn_oemdata_mutex);
sn_oemdata = oemdata;
sn_oemdata_size = oemdata_size;
+ sn_oemdata_bufsize = 0;
ia64_sn_plat_specific_err_print(print_hook, (char *)psei);
up(&sn_oemdata_mutex);
return 0;
@@ -120,7 +121,6 @@
{
efi_guid_t guid = *(efi_guid_t *)sect_header;
*oemdata_size = 0;
- sn_oemdata_bufsize = 0;
vfree(*oemdata);
*oemdata = NULL;
if (efi_guidcmp(guid, SAL_PLAT_SPECIFIC_ERR_SECT_GUID) = 0)
reply other threads:[~2004-03-22 3:11 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=5785.1079925095@kao2.melbourne.sgi.com \
--to=kaos@sgi.com \
--cc=linux-ia64@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