summaryrefslogtreecommitdiff
path: root/include/dt-bindings
diff options
context:
space:
mode:
authorClaudiu Beznea <claudiu.beznea@microchip.com>2023-05-30 12:39:11 +0300
committerStephen Boyd <sboyd@kernel.org>2023-06-17 07:52:50 +0300
commitb73ed981da6d25c921aaefa7ca3df85bbd85b7fc (patch)
treeab621879184afa777ab111d01eae7939590b0a85 /include/dt-bindings
parent267ad94b13c53d8c99a336f0841b1fa1595b1d0f (diff)
downloadlinux-b73ed981da6d25c921aaefa7ca3df85bbd85b7fc.tar.xz
clk: keystone: sci-clk: check return value of kasprintf()
kasprintf() returns a pointer to dynamically allocated memory. Pointer could be NULL in case allocation fails. Check pointer validity. Identified with coccinelle (kmerr.cocci script). Fixes: b745c0794e2f ("clk: keystone: Add sci-clk driver support") Depends-on: 96488c09b0f4 ("clk: keystone: sci-clk: cut down the clock name length") Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Link: https://lore.kernel.org/r/20230530093913.1656095-7-claudiu.beznea@microchip.com Reviewed-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'include/dt-bindings')
0 files changed, 0 insertions, 0 deletions