aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/page-io.c
diff options
context:
space:
mode:
authorCharles Han <[email protected]>2025-01-10 09:24:21 +0000
committerTheodore Ts'o <[email protected]>2025-03-13 14:01:14 +0000
commit57e7239ce0ed14e81e414c99d57f516f6220a995 (patch)
tree7b2d402f8ff011e6b1d196b60ab8ae1224820bdd /fs/ext4/page-io.c
parentext4: Refactor out ext4_try_to_write_inline_data() (diff)
downloadkernel-57e7239ce0ed14e81e414c99d57f516f6220a995.tar.gz
kernel-57e7239ce0ed14e81e414c99d57f516f6220a995.zip
ext4: fix potential null dereference in ext4 kunit test
kunit_kzalloc() may return a NULL pointer, dereferencing it without NULL check may lead to NULL dereference. Add a NULL check for grp. Fixes: ac96b56a2fbd ("ext4: Add unit test for mb_mark_used") Fixes: b7098e1fa7bc ("ext4: Add unit test for mb_free_blocks") Signed-off-by: Charles Han <[email protected]> Reviewed-by: Kemeng Shi <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'fs/ext4/page-io.c')
0 files changed, 0 insertions, 0 deletions