aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/compaction-times.py
diff options
context:
space:
mode:
authorXiu Jianfeng <[email protected]>2022-11-12 17:27:19 +0800
committerMimi Zohar <[email protected]>2022-11-16 11:47:55 -0500
commit25369175ce84813dd99d6604e710dc2491f68523 (patch)
treee0d8966f673ad10b23cd728b4162ba84bfbf56ec /tools/perf/scripts/python/compaction-times.py
parent39419ef7af0916cc3620ecf1ed42d29659109bf3 (diff)
ima: Fix misuse of dereference of pointer in template_desc_init_fields()
The input parameter @fields is type of struct ima_template_field ***, so when allocates array memory for @fields, the size of element should be sizeof(**field) instead of sizeof(*field). Actually the original code would not cause any runtime error, but it's better to make it logically right. Fixes: adf53a778a0a ("ima: new templates management mechanism") Signed-off-by: Xiu Jianfeng <[email protected]> Reviewed-by: Roberto Sassu <[email protected]> Signed-off-by: Mimi Zohar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions