From: Roel Kluin <12o3l@tiscali.nl> Date: Mon, 29 Oct 2007 21:32:30 +0000 (-0700) Subject: [IA64] arch/ia64/sn/kernel/mca.c: undo lock when sn_oemdata can't be extended X-Git-Tag: v2.6.24-rc2~74^2~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41f667f213da4776e5883ce1e4188dc8e71f275e;p=linux-2.6 [IA64] arch/ia64/sn/kernel/mca.c: undo lock when sn_oemdata can't be extended Clean up locking state in failure path. Signed-off-by: Roel Kluin <12o3l@tiscali.nl> Cc: Jes Sorensen Cc: "Luck, Tony" Signed-off-by: Andrew Morton Signed-off-by: Tony Luck --- diff --git a/arch/ia64/sn/kernel/mca.c b/arch/ia64/sn/kernel/mca.c index 3db62f2459..868c9aa64f 100644 --- a/arch/ia64/sn/kernel/mca.c +++ b/arch/ia64/sn/kernel/mca.c @@ -98,6 +98,7 @@ sn_platform_plat_specific_err_print(const u8 * sect_header, u8 ** oemdata, while (*sn_oemdata_size > sn_oemdata_bufsize) { u8 *newbuf = vmalloc(*sn_oemdata_size); if (!newbuf) { + mutex_unlock(&sn_oemdata_mutex); printk(KERN_ERR "%s: unable to extend sn_oemdata\n", __FUNCTION__); return 1;