]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc/spufs: add a missing mutex_unlock
authorKou Ishizaki <kou.ishizaki@toshiba.co.jp>
Wed, 8 Oct 2008 23:45:49 +0000 (10:45 +1100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 5 Dec 2008 18:55:23 +0000 (10:55 -0800)
commitbaec2700bad81e1b08c81240c382b46613ccb981
tree67cfe34ee517aa393e66fd89974ffac105472ac8
parent44f4142a449d476de768a9bc951b773af69e306c
powerpc/spufs: add a missing mutex_unlock

commit 6747c2ee8abf749e63fee8cd01a9ee293e6a4247 upstream.

A mutex_unlock(&gang->aff_mutex) in spufs_create_context() is missing
in case spufs_context_open() fails.  As a result, spu_create syscall
and spu_get_idle() may block.

This patch adds the mutex_unlock.

Signed-off-by: Kou Ishizaki <kou.ishizaki@toshiba.co.jp>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Acked-by: Andre Detsch <adetsch@br.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/powerpc/platforms/cell/spufs/inode.c