diff options
author | Claudiu Beznea <claudiu.beznea@microchip.com> | 2023-06-15 12:53:32 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2023-06-16 15:01:45 +0200 |
commit | 310cd4c206cd04696ccbfd1927b5ab6973e8cc8e (patch) | |
tree | 2230eaecd620b278c549ed282211cdf45ee2906c /Documentation/isdn | |
parent | pinctrl: freescale: Fix a memory out of bounds when num_configs is 1 (diff) | |
download | linux-310cd4c206cd04696ccbfd1927b5ab6973e8cc8e.tar.xz linux-310cd4c206cd04696ccbfd1927b5ab6973e8cc8e.zip |
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 <claudiu.beznea@microchip.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230615105333.585304-3-claudiu.beznea@microchip.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'Documentation/isdn')
0 files changed, 0 insertions, 0 deletions