]> git.ipfire.org Git - thirdparty/linux.git/commit
mm/cma: pair the trace_cma_alloc_start/finish
authorRichard Chang <richardycc@google.com>
Thu, 5 Jun 2025 07:25:32 +0000 (07:25 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 10 Jul 2025 05:41:58 +0000 (22:41 -0700)
commit08e21e241210a3a124cfafd33db3dbda49b6f43d
treeb3e53f72f10a32cb243026be55987ba3c58f9bf4
parent99edea30058bb5dd6c2fee6fa0c703fa4bc4b140
mm/cma: pair the trace_cma_alloc_start/finish

In the bad input validation cases, there is no trace_cma_alloc_finish to
match the trace_cma_alloc_start.  Move the trace_cma_alloc_start event
after the validations.

Link: https://lkml.kernel.org/r/20250605072532.972081-1-richardycc@google.com
Signed-off-by: Richard Chang <richardycc@google.com>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Kalesh Singh <kaleshsingh@google.com>
Cc: Martin Liu <liumartin@google.com>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/cma.c