[parisc-linux-cvs] pa17, added missing spin_unlock(&irq_lock) in case kmalloc failed

Helge Deller deller@gmx.de
Sat, 14 Jul 2001 12:03:09 +0200


Index: Makefile
===================================================================
RCS file: /home/cvs/parisc/linux/Makefile,v
retrieving revision 1.101
diff -u -r1.101 Makefile
--- Makefile	2001/07/14 07:22:57	1.101
+++ Makefile	2001/07/14 10:00:09
@@ -1,7 +1,7 @@
 VERSION = 2
 PATCHLEVEL = 4
 SUBLEVEL = 6
-EXTRAVERSION = -pa16
+EXTRAVERSION = -pa17
 
 KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
 
Index: arch/parisc/kernel/irq.c
===================================================================
RCS file: /home/cvs/parisc/linux/arch/parisc/kernel/irq.c,v
retrieving revision 1.42
diff -u -r1.42 irq.c
--- irq.c	2001/07/14 05:25:53	1.42
+++ irq.c	2001/07/14 10:00:09
@@ -551,6 +551,7 @@
 	}
 
 	if (!action) {
+		spin_unlock(&irq_lock);
 		printk(KERN_ERR "request_irq():Augh! No action!\n") ;
 		return -ENOMEM;
 	}