Commit 41f667f2 authored by Roel Kluin's avatar Roel Kluin Committed by Tony Luck

[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: default avatarRoel Kluin <12o3l@tiscali.nl>
Cc: Jes Sorensen <jes@trained-monkey.org>
Cc: "Luck, Tony" <tony.luck@intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 346f3799
...@@ -98,6 +98,7 @@ sn_platform_plat_specific_err_print(const u8 * sect_header, u8 ** oemdata, ...@@ -98,6 +98,7 @@ sn_platform_plat_specific_err_print(const u8 * sect_header, u8 ** oemdata,
while (*sn_oemdata_size > sn_oemdata_bufsize) { while (*sn_oemdata_size > sn_oemdata_bufsize) {
u8 *newbuf = vmalloc(*sn_oemdata_size); u8 *newbuf = vmalloc(*sn_oemdata_size);
if (!newbuf) { if (!newbuf) {
mutex_unlock(&sn_oemdata_mutex);
printk(KERN_ERR "%s: unable to extend sn_oemdata\n", printk(KERN_ERR "%s: unable to extend sn_oemdata\n",
__FUNCTION__); __FUNCTION__);
return 1; return 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment