diff options
| author | jianchunfu <[email protected]> | 2022-06-15 07:33:48 +0000 |
|---|---|---|
| committer | Steven Rostedt (Google) <[email protected]> | 2022-07-12 01:14:29 +0000 |
| commit | b5f37a0b6f667f5c72340ca9dcd7703f261cb981 (patch) | |
| tree | 1fff9e6a92508b628be5e2ef8d8714370da5b1cf /lib/debugobjects.c | |
| parent | Linux 5.19-rc5 (diff) | |
| download | kernel-b5f37a0b6f667f5c72340ca9dcd7703f261cb981.tar.gz kernel-b5f37a0b6f667f5c72340ca9dcd7703f261cb981.zip | |
rtla/utils: Use calloc and check the potential memory allocation failure
Replace malloc with calloc and add memory allocating check
of mon_cpus before used.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 7d0dc9576dc3 ("rtla/timerlat: Add --dma-latency option")
Signed-off-by: jianchunfu <[email protected]>
Acked-by: Daniel Bristot de Oliveira <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
