Re: [PATCH] kernel-shark: sched-plugin: Initialize plugin_sched_context_handler to zeros

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 14 Feb 2019 16:33:03 +0000
Yordan Karadzhov <ykaradzhov@xxxxxxxxxx> wrote:

> On 14.02.19 г. 17:56 ч., Steven Rostedt wrote:
> > From: "Steven Rostedt (VMware)" <rostedt@xxxxxxxxxxx>
> > 
> > Now that the sched plugin only requires a single wakeup event to process the
> > wakeup latency boxes, there's no guarantee that all the wakeup events saved
> > in plugin_sched_context_handler will be initialized.
> > 
> > Allocate plugin_sched_context_handler to zeros with calloc() instead of
> > malloc() to make sure the pointers it has are NULL and not left
> > uninitialized.
> > 
> > Fixes: e50d3bbfc9a4 ("kernel-shark: Add sched_waking event processing to sched_waking")
> > Signed-off-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx>
> > ---

> makes perfect sense.

Thanks Yordan,

Can you reply with an official "Reviewed-by" tag?

-- Steve



[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux