aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorMiaoqian Lin <[email protected]>2021-12-12 06:25:02 +0000
committerArnaldo Carvalho de Melo <[email protected]>2021-12-18 08:31:14 -0300
commit0a515a06c5ebfa46fee3ac519e418f801e718da4 (patch)
tree97a4b68135bba842bb23a4ad27e9701f24153c9a /lib/test_overflow.c
parent9eaa88c7036eda3f6c215f87ca693594cf90559b (diff)
perf expr: Fix missing check for return value of hashmap__new()
The hashmap__new() function may return ERR_PTR(-ENOMEM) when malloc() fails, add IS_ERR() checking for ctx->ids. Signed-off-by: Miaoqian Lin <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] [ s/kfree()/free()/ and add missing linux/err.h include ] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions