summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorRoel Kluin <12o3l@tiscali.nl>2007-11-22 01:51:47 +0300
committerRussell King <rmk+kernel@arm.linux.org.uk>2007-11-26 17:39:04 +0300
commit1f809226b9f4d3a89e42212fed7b482e8b30f77c (patch)
treeb96c3083050825a3a640bb98415ab60730dffe7b /arch/arm
parent52b2bd7f97e2677f8d6f5cef675f86bba732e860 (diff)
downloadlinux-1f809226b9f4d3a89e42212fed7b482e8b30f77c.tar.xz
[ARM] PXA ssp: unlock when ssp tries to close an invalid port
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>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-pxa/ssp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/ssp.c b/arch/arm/mach-pxa/ssp.c
index 71766ac0328b..422afee88169 100644
--- a/arch/arm/mach-pxa/ssp.c
+++ b/arch/arm/mach-pxa/ssp.c
@@ -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;
}