]> err.no Git - linux-2.6/commitdiff
[IA64] arch/ia64/sn/kernel/mca.c: undo lock when sn_oemdata can't be extended
authorRoel Kluin <12o3l@tiscali.nl>
Mon, 29 Oct 2007 21:32:30 +0000 (14:32 -0700)
committerTony Luck <tony.luck@intel.com>
Mon, 29 Oct 2007 21:32:30 +0000 (14:32 -0700)
Clean up locking state in failure path.

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Cc: Jes Sorensen <jes@trained-monkey.org>
Cc: "Luck, Tony" <tony.luck@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/sn/kernel/mca.c

index 3db62f24596ca6e76d9756d3c4e96ee9b630d443..868c9aa64fe2db7af71a78016ab637b9b0a18a12 100644 (file)
@@ -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;