aboutsummaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorClaudiu Beznea2023-06-15 13:53:32 +0300
committerGreg Kroah-Hartman2023-07-19 16:21:38 +0200
commit35404a47ba77607d33802cabe9f049e4fcb0e4ba (patch)
tree08d1e52dc96314ff0e5e2fe4e2def47a0dce625d /include/uapi
parent4e82f92c349ea603736ade1e814861c0182a55ad (diff)
pinctrl: microchip-sgpio: check return value of devm_kasprintf()
[ Upstream commit 310cd4c206cd04696ccbfd1927b5ab6973e8cc8e ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions