diff options
| author | Kalesh Singh <[email protected]> | 2024-01-10 01:22:33 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-02-22 00:00:01 +0000 |
| commit | 51ae3f4ac5e94334ac6078145a02bc8f30e8528b (patch) | |
| tree | 6c7210cc29de716f6bd18330867a291583382648 /mm/sparse.c | |
| parent | kasan: guard release_free_meta() shadow access with kasan_arch_is_ready() (diff) | |
| download | kernel-51ae3f4ac5e94334ac6078145a02bc8f30e8528b.tar.gz kernel-51ae3f4ac5e94334ac6078145a02bc8f30e8528b.zip | |
mm/cma: fix placement of trace_cma_alloc_start/finish
The current placement of trace_cma_alloc_start/finish misses the fail
cases: !cma || !cma->count || !cma->bitmap.
trace_cma_alloc_finish is also not emitted for the failure case
where bitmap_count > bitmap_maxno.
Fix these missed cases by moving the start event before the failure
checks and moving the finish event to the out label.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 7bc1aec5e287 ("mm: cma: add trace events for CMA alloc perf testing")
Signed-off-by: Kalesh Singh <[email protected]>
Cc: Minchan Kim <[email protected]>
Cc: Liam Mark <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/sparse.c')
0 files changed, 0 insertions, 0 deletions
