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)
committerJeremy Kerr <jk@ozlabs.org>
Fri, 10 Oct 2008 00:06:17 +0000 (11:06 +1100)
commit6747c2ee8abf749e63fee8cd01a9ee293e6a4247
treec1cb647d2169d0d12eab81e65b7f90d68a89f244
parentba0b996d01eaca4f3cc1f07dcc238fcad7e0d427
powerpc/spufs: add a missing mutex_unlock

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>
arch/powerpc/platforms/cell/spufs/inode.c