]> www.infradead.org Git - linux.git/commit
f2fs: fix null reference error when checking end of zone
authorDaejun Park <daejun7.park@samsung.com>
Thu, 4 Jul 2024 01:01:21 +0000 (10:01 +0900)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 10 Jul 2024 22:47:57 +0000 (22:47 +0000)
commitc82bc1ab2a8a5e73d9728e80c4c2ed87e8921a38
tree5b3d77f68942b8c78441fc2934d1e19d74adf36b
parent8c409989678e92e4a737e7cd2bb04f3efb81071a
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: e067dc3c6b9c ("f2fs: maintain six open zones for zoned devices")
Signed-off-by: Daejun Park <daejun7.park@samsung.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Reviewed-by: Daeho Jeong <daehojeong@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c