Re: [PATCH v2] rtla/utils: Use calloc and check the potential memory allocation failure

From: Steven Rostedt
Date: Mon Jul 11 2022 - 21:17:26 EST


On Fri, 8 Jul 2022 14:37:22 +0200
Daniel Bristot de Oliveira <bristot@xxxxxxxxxx> wrote:

> On 6/15/22 09:33, jianchunfu wrote:
> > Replace malloc with calloc and add memory allocating check
> > of mon_cpus before used.
> >
> > Fixes: 7d0dc9576dc3 ("rtla/timerlat: Add --dma-latency option")
> > Signed-off-by: jianchunfu <jianchunfu@xxxxxxxxxxxxxxxxxxxx>
>
> Acked-by: Daniel Bristot de Oliveira <bristot@xxxxxxxxxx>
>

Applied, thanks jianchunfu and Daniel!

-- Steve