]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8d45793b128475dfde849da765ce266d3cafad6f
tree8932c50a54cdbeb1fadda70f388bbc53d6407d9c
parent2583d0c70f079a55086ef3ca11ca6a48be547231
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