diff options
author | Claudiu Beznea <claudiu.beznea@microchip.com> | 2023-06-21 13:04:09 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2023-08-10 09:56:31 +0200 |
commit | f941714a7c7698eadb59bc27d34d6d6f38982705 (patch) | |
tree | e1bdb9c46de7689b5d1406f056e00bdb8eafeecd /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 6387e0aa812297c4204d805b3df053fd58b699d1 (diff) |
pinctrl: mcp23s08: 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: 0f04a81784fe ("pinctrl: mcp23s08: Split to three parts: core, I²C, SPI")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230621100409.1608395-1-claudiu.beznea@microchip.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions