[PATCH] efs: Remove incorrect unlock_kernel from failure path in efs_symlink_readpage()
authorJosh Triplett <josht@us.ibm.com>
Sun, 30 Jul 2006 10:03:58 +0000 (03:03 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Jul 2006 20:28:41 +0000 (13:28 -0700)
commit0aa9e4f147880b2d7d1eef1f0b45112af0e36f9f
tree2353795f3b72fc0fc5bffd1584bc3f45d82a775e
parent6ecbc4e1a395062a8e99e4f5fe328f6ba166d9c8
[PATCH] efs: Remove incorrect unlock_kernel from failure path in efs_symlink_readpage()

If efs_symlink_readpage hits the -ENAMETOOLONG error path, it will call
unlock_kernel without ever having called lock_kernel(); fix this by
creating and jumping to a new label fail_notlocked rather than the fail
label used after calling lock_kernel().

Signed-off-by: Josh Triplett <josh@freedesktop.org>
Cc: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/efs/symlink.c