f2fs: fix encrypted page memory leak
authorChao Yu <yuchao0@huawei.com>
Thu, 21 Feb 2019 12:37:14 +0000 (20:37 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 13 Mar 2019 01:59:18 +0000 (18:59 -0700)
commit6492a335fd8084fa894beb0c4182de439a12e8d5
tree3ac0d440ed615323848f16b7c37f08baf94c80a9
parentdc37910d4c63296513c5795187d020ad9793822b
f2fs: fix encrypted page memory leak

For IPU path of f2fs_do_write_data_page(), in its error path, we
need to release encrypted page and fscrypt context, otherwise it
will cause memory leak.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c