lkml.org 
[lkml]   [2023]   [Jun]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v1 01/12] perf expr: Add has_event function
From
On 23/06/2023 01:33, Ian Rogers wrote:
> + if (!compute_ids)
> + return 0.0;
> +
> + tmp = evlist__new();

tmp may be NULL, and parse_event() is not NULL safe, so I assume that we
need to handle tmp == NULL

> + ret = parse_event(tmp, id) ? 0 : 1;
> + evlist__delete(tmp);
> + return ret;

\
 
 \ /
  Last update: 2023-06-23 16:41    [W:0.085 / U:1.664 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site