aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/mm/compaction_test.c
diff options
context:
space:
mode:
authorMark Tinguely <[email protected]>2025-04-11 16:31:24 +0000
committerAndrew Morton <[email protected]>2025-05-08 06:39:38 +0000
commit31d4cd4eb2f8d9b87ebfa6a5e443a59e3b3d7b8c (patch)
treed6b34b6956d2693b3f362252bde77818637d5361 /tools/testing/selftests/mm/compaction_test.c
parentmm/huge_memory: fix dereferencing invalid pmd migration entry (diff)
downloadkernel-31d4cd4eb2f8d9b87ebfa6a5e443a59e3b3d7b8c.tar.gz
kernel-31d4cd4eb2f8d9b87ebfa6a5e443a59e3b3d7b8c.zip
ocfs2: fix panic in failed foilio allocation
commit 7e119cff9d0a ("ocfs2: convert w_pages to w_folios") and commit 9a5e08652dc4b ("ocfs2: use an array of folios instead of an array of pages") save -ENOMEM in the folio array upon allocation failure and call the folio array free code. The folio array free code expects either valid folio pointers or NULL. Finding the -ENOMEM will result in a panic. Fix by NULLing the error folio entry. Link: https://lkml.kernel.org/r/[email protected] Fixes: 7e119cff9d0a ("ocfs2: convert w_pages to w_folios") Fixes: 9a5e08652dc4b ("ocfs2: use an array of folios instead of an array of pages") Signed-off-by: Mark Tinguely <[email protected]> Reviewed-by: Matthew Wilcox (Oracle) <[email protected]> Cc: Changwei Ge <[email protected]> Cc: Joel Becker <[email protected]> Cc: Junxiao Bi <[email protected]> Cc: Mark Fasheh <[email protected]> Cc: Nathan Chancellor <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/testing/selftests/mm/compaction_test.c')
0 files changed, 0 insertions, 0 deletions