[patch] 2.6.5-rc2 salinfo oemdata race fix

From: Keith Owens <kaos_at_sgi.com>
Date: 2004-03-22 14:11:35
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)


-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Sun Mar 21 22:12:21 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:24 EST