f2fs: fix wrong error hanlder in f2fs_follow_link
authorJaegeuk Kim <jaegeuk@kernel.org>
Wed, 22 Apr 2015 18:03:48 +0000 (11:03 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 4 May 2015 21:15:16 +0000 (14:15 -0700)
commit7263b1bd0490fca68ee7eedb0b6973cb86d4701c
tree176d95bda119fcee53260373869153c800dde8ef
parent5463e7c18e51152104aba9614e6abfc039a8b710
f2fs: fix wrong error hanlder in f2fs_follow_link

The page_follow_link_light returns NULL and its error pointer was remained
in nd->path.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/namei.c