Commit bffffc7b authored by Zhiguo Niu's avatar Zhiguo Niu Committed by David Anderson
Browse files

BACKPORT: f2fs: fix to check return value __allocate_new_segment



__allocate_new_segment may return error when get_new_segment
fails, so its caller should check its return value.

Bug: 337626258
Signed-off-by: default avatarZhiguo Niu <zhiguo.niu@unisoc.com>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit ca702aed)
[xiuhong: Resolved minor conflict in fs/f2fs/f2fs.h]
Change-Id: Ia9fdd89b41f53a4cd12ba719393e4759b0b6136a
Signed-off-by: default avatarXiuhong Wang <xiuhong.wang@unisoc.com>
parent 034ca7e0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment