Commit 46b43621 authored by Daejun Park's avatar Daejun Park Committed by Treehugger Robot
Browse files

UPSTREAM: f2fs: fix null reference error when checking end of zone



This patch fixes a potentially null pointer being accessed by
is_end_zone_blkaddr() that checks the last block of a zone
when f2fs is mounted as a single device.

Fixes: e067dc3c ("f2fs: maintain six open zones for zoned devices")
Change-Id: Ifcc91c800f952385361ec580e80e3558288e25a3
Signed-off-by: default avatarDaejun Park <daejun7.park@samsung.com>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Reviewed-by: default avatarDaeho Jeong <daehojeong@google.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit c82bc1ab)
parent 38a446d5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment