f2fs crypto: fix corrupted symlink in encrypted case
authorJaegeuk Kim <jaegeuk@kernel.org>
Wed, 30 Mar 2016 20:13:16 +0000 (13:13 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 30 Mar 2016 20:21:15 +0000 (13:21 -0700)
commitc90e09f7fb498f81cd4e8bb6460d3a26ccebeca3
tree8eab6962797d7215274be9ac542f6517f00eb579
parentfd694733d523df1e0a583cf5c4c08e41d7bf9fa3
f2fs crypto: fix corrupted symlink in encrypted case

In the encrypted symlink case, we should check its corrupted symname after
decrypting it.
Otherwise, we can report -ENOENT incorrectly, if encrypted symname starts with
'\0'.

Cc: stable 4.5+ <stable@vger.kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/namei.c