[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>
This commit is contained in:
parent
52b2bd7f97
commit
1f809226b9
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue