afs: add missing up_write() on return
authorSven Schnelle <svens@stackframe.org>
Wed, 2 Apr 2008 12:17:18 +0000 (13:17 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 2 Apr 2008 14:40:54 +0000 (07:40 -0700)
commita5f37c3252b174efdcdd808797a7c529064c95c0
tree8932c50a54cdbeb1fadda70f388bbc53d6407d9c
parent0e81a8ae37687845f7cdfa2adce14ea6a5f1dd34
afs: add missing up_write() on return

If afs_cell_alloc() fails, afs_cells_sem doesn't get unlocked, which
leads to a deadlock.  Unlock it before returning.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/afs/cell.c