]> err.no Git - linux-2.6/commitdiff
[ARM] PXA ssp: unlock when ssp tries to close an invalid port
authorRoel Kluin <12o3l@tiscali.nl>
Wed, 21 Nov 2007 22:51:47 +0000 (14:51 -0800)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 26 Nov 2007 14:39:04 +0000 (14:39 +0000)
Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-pxa/ssp.c

index 71766ac0328b1378f23afde4a656143fd4ba4d2e..422afee88169414dbd5cb74f57f481b7cbc240e5 100644 (file)
@@ -309,6 +309,7 @@ void ssp_exit(struct ssp_dev *dev)
 
        if (dev->port > PXA_SSP_PORTS || dev->port == 0) {
                printk(KERN_WARNING "SSP: tried to close invalid port\n");
+               mutex_unlock(&mutex);
                return;
        }