summaryrefslogtreecommitdiffstats
path: root/Documentation/isdn
diff options
context:
space:
mode:
authorClaudiu Beznea <claudiu.beznea@microchip.com>2023-06-15 12:53:32 +0200
committerLinus Walleij <linus.walleij@linaro.org>2023-06-16 15:01:45 +0200
commit310cd4c206cd04696ccbfd1927b5ab6973e8cc8e (patch)
tree2230eaecd620b278c549ed282211cdf45ee2906c /Documentation/isdn
parentpinctrl: freescale: Fix a memory out of bounds when num_configs is 1 (diff)
downloadlinux-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