linux/tools/tracing/rtla/src
Dan Carpenter 90574d2a67 rtla/osnoise: Prevent NULL dereference in error handling
If the "tool->data" allocation fails then there is no need to call
osnoise_free_top() and, in fact, doing so will lead to a NULL dereference.

Cc: stable@vger.kernel.org
Cc: John Kacur <jkacur@redhat.com>
Cc: "Luis Claudio R. Goncalves" <lgoncalv@redhat.com>
Cc: Clark Williams <williams@redhat.com>
Fixes: 1eceb2fc2c ("rtla/osnoise: Add osnoise top mode")
Link: https://lore.kernel.org/f964ed1f-64d2-4fde-ad3e-708331f8f358@stanley.mountain
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
2024-08-09 13:03:15 -04:00
..
Build tools/rtla: Use tools/build makefiles to build rtla 2024-03-20 05:39:06 +01:00
osnoise.c rtla/timerlat_top: Add timerlat user-space support 2023-06-13 16:38:51 -04:00
osnoise.h rtla/timerlat_top: Add timerlat user-space support 2023-06-13 16:38:51 -04:00
osnoise_hist.c rtla/osnoise: Better report when histogram is empty 2024-06-21 10:19:53 +02:00
osnoise_top.c rtla/osnoise: Prevent NULL dereference in error handling 2024-08-09 13:03:15 -04:00
rtla.c rtla: Add hwnoise tool 2023-02-13 23:56:46 -05:00
timerlat.c rtla: Fix exit status when returning from calls to usage() 2022-12-09 18:06:24 -05:00
timerlat.h rtla/timerlat: Add timerlat hist mode 2022-01-13 17:02:43 -05:00
timerlat_aa.c rtla/auto-analysis: Replace \t with spaces 2024-05-15 15:13:56 +02:00
timerlat_aa.h rtla/timerlat: Give timerlat auto analysis its own instance 2023-06-13 16:31:35 -04:00
timerlat_hist.c rtla: Fix -t\--trace[=file] 2024-05-16 16:49:10 +02:00
timerlat_top.c rtla: Fix -t\--trace[=file] 2024-05-16 16:49:10 +02:00
timerlat_u.c rtla/timerlat: Do not stop user-space if a cpu is offline 2023-09-22 14:43:46 +02:00
timerlat_u.h rtla/timerlat_top: Add timerlat user-space support 2023-06-13 16:38:51 -04:00
trace.c rtla: Add --trace-buffer-size option 2024-05-16 16:44:34 +02:00
trace.h rtla: Add --trace-buffer-size option 2024-05-16 16:44:34 +02:00
utils.c tools/rtla: Replace setting prio with nice for SCHED_OTHER 2024-02-12 10:56:36 +01:00
utils.h tools/rtla: Replace setting prio with nice for SCHED_OTHER 2024-02-12 10:56:36 +01:00