aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2024-05-10 15:22:53 +0000
committerTheodore Ts'o <[email protected]>2024-05-17 15:24:38 +0000
commitc6a6c9694aadc4c3ab8d89bdd44aed3eab1e43c6 (patch)
tree2c08720e119b6c4b1f4983750a1fb819f098fa49 /rust/helpers.c
parentjbd2: add prefix 'jbd2' for 'shrink_type' (diff)
downloadkernel-c6a6c9694aadc4c3ab8d89bdd44aed3eab1e43c6.tar.gz
kernel-c6a6c9694aadc4c3ab8d89bdd44aed3eab1e43c6.zip
ext4: fix error pointer dereference in ext4_mb_load_buddy_gfp()
This code calls folio_put() on an error pointer which will lead to a crash. Check for both error pointers and NULL pointers before calling folio_put(). Fixes: 5eea586b47f0 ("ext4: convert bd_buddy_page to bd_buddy_folio") Signed-off-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions