aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorQintaoShen <[email protected]>2022-03-24 15:44:03 +0800
committerNishanth Menon <[email protected]>2022-04-15 14:59:23 -0500
commitba56291e297d28aa6eb82c5c1964fae2d7594746 (patch)
treef06beb68f3cf776ca8bab86324b3222ff5911bbb /tools/perf/scripts/python/exported-sql-viewer.py
parentcabfa5b46573b4e5ded52b4296a831745c6d32b5 (diff)
soc: ti: ti_sci_pm_domains: Check for null return of devm_kcalloc
The allocation funciton devm_kcalloc may fail and return a null pointer, which would cause a null-pointer dereference later. It might be better to check it and directly return -ENOMEM just like the usage of devm_kcalloc in previous code. Signed-off-by: QintaoShen <[email protected]> Signed-off-by: Nishanth Menon <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions