diff options
author | Hui Tang <[email protected]> | 2022-11-19 13:48:58 +0800 |
---|---|---|
committer | Claudiu Beznea <[email protected]> | 2022-11-24 12:44:13 +0200 |
commit | e2e6a217a84d09785848a82599729c9a41566e3a (patch) | |
tree | 06157c377bb10ca37950945ebd386fcc62c51324 /tools/perf/scripts/python/flamegraph.py | |
parent | 57976762428675f259339385d3324d28ee53ec02 (diff) |
clk: microchip: check for null return of devm_kzalloc()
Because of the possible failure of devm_kzalloc(), name might be NULL and
will cause null pointer dereference later.
Therefore, it might be better to check it and directly return -ENOMEM.
Fixes: d39fb172760e ("clk: microchip: add PolarFire SoC fabric clock support")
Signed-off-by: Hui Tang <[email protected]>
Reviewed-by: Conor Dooley <[email protected]>
[claudiu.beznea: s/refrence/reference/, s/possilble/possible]
Signed-off-by: Claudiu Beznea <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions