aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHenry Martin <bsdhenrymartin@gmail.com>2025-04-01 21:13:41 +0800
committerStephen Boyd <sboyd@kernel.org>2025-06-19 16:48:09 -0700
commit13de464f445d42738fe18c9a28bab056ba3a290a (patch)
treec78e4697213609dd7fcf0809c6ef709bc63053c8 /tools/perf/scripts/python
parentclk: apple-nco: Drop default ARCH_APPLE in Kconfig (diff)
downloadlinux-13de464f445d42738fe18c9a28bab056ba3a290a.tar.gz
linux-13de464f445d42738fe18c9a28bab056ba3a290a.zip
clk: davinci: Add NULL check in davinci_lpsc_clk_register()
devm_kasprintf() returns NULL when memory allocation fails. Currently, davinci_lpsc_clk_register() does not check for this case, which results in a NULL pointer dereference. Add NULL check after devm_kasprintf() to prevent this issue and ensuring no resources are left allocated. Fixes: c6ed4d734bc7 ("clk: davinci: New driver for davinci PSC clocks") Signed-off-by: Henry Martin <bsdhenrymartin@gmail.com> Link: https://lore.kernel.org/r/20250401131341.26800-1-bsdhenrymartin@gmail.com Reviewed-by: David Lechner <david@lechnology.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions