diff options
author | Claudiu Beznea <[email protected]> | 2023-06-21 13:04:09 +0300 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2023-08-10 09:56:31 +0200 |
commit | f941714a7c7698eadb59bc27d34d6d6f38982705 (patch) | |
tree | e1bdb9c46de7689b5d1406f056e00bdb8eafeecd /lib/test_fortify/write_overflow-strncpy-src.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 <[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 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions