[PATCH] ufs: remove incorrect unlock_kernel from failure path in ufs_symlink()
authorJosh Triplett <josht@us.ibm.com>
Sun, 30 Jul 2006 10:03:59 +0000 (03:03 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Jul 2006 20:28:42 +0000 (13:28 -0700)
commit344fe78669d2d1cff9e8939598f6d0d865b6a75b
tree1b5dc1e8edd1e67ab4d87ed05e43bea527129b91
parent0bee8d28496a8c76b488a2c29e01a0ebc1411475
[PATCH] ufs: remove incorrect unlock_kernel from failure path in ufs_symlink()

ufs_symlink, in one of its error paths, calls unlock_kernel without ever
having called lock_kernel(); fix this by creating and jumping to a new
label out_notlocked rather than the out label used after calling
lock_kernel().

Signed-off-by: Josh Triplett <josh@freedesktop.org>
Cc: Evgeniy Dushistov <dushistov@mail.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/ufs/namei.c