On Fri, Sep 29, 2023 at 05:13:04AM -0400, Steven Rostedt wrote: > From: "Steven Rostedt (Google)" <rostedt@xxxxxxxxxxx> > > If the vals is NULL (which is valid), the traceeval_insert() macro calls > traceeval_insert_size() with sizeof(vals)/sizeof(vals[0]) to get the > number of vals in the array. But this does not make sense with a NULL > value. Check for NULL and if vals is NULL then pass in zero. > > Cc: Ross Zwisler <zwisler@xxxxxxxxxx> > Cc: Stevie Alvarez <stevie.6strings@xxxxxxxxx> > Signed-off-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx> Reviewed-by: Ross Zwisler <zwisler@xxxxxxxxxx>