aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorClaudiu Beznea <[email protected]>2023-06-15 13:53:32 +0300
committerLinus Walleij <[email protected]>2023-06-16 15:01:45 +0200
commit310cd4c206cd04696ccbfd1927b5ab6973e8cc8e (patch)
tree2230eaecd620b278c549ed282211cdf45ee2906c /tools/testing/selftests/bpf/progs/test_autoload.c
parent9063777ca1e2e895c5fdd493ee0c3f18fa710ed4 (diff)
pinctrl: microchip-sgpio: check return value of devm_kasprintf()
devm_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: 7e5ea974e61c ("pinctrl: pinctrl-microchip-sgpio: Add pinctrl driver for Microsemi Serial GPIO") Signed-off-by: Claudiu Beznea <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions