diff options
author | Ma Ke <make24@iscas.ac.cn> | 2024-09-06 13:03:26 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2024-10-01 15:03:34 +0300 |
commit | b0f0e3f0552a566def55c844b0d44250c58e4df6 (patch) | |
tree | a52f13cb68481fa606ee2f1468675a07d335b6cb /drivers/nubus | |
parent | 665a58fe663ac7a9ea618dc0b29881649324b116 (diff) | |
download | linux-b0f0e3f0552a566def55c844b0d44250c58e4df6.tar.xz |
pinctrl: stm32: check devm_kasprintf() returned value
devm_kasprintf() can return a NULL pointer on failure but this returned
value is not checked. Fix this lack and check the returned value.
Found by code review.
Cc: stable@vger.kernel.org
Fixes: 32c170ff15b0 ("pinctrl: stm32: set default gpio line names using pin names")
Signed-off-by: Ma Ke <make24@iscas.ac.cn>
Link: https://lore.kernel.org/20240906100326.624445-1-make24@iscas.ac.cn
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/nubus')
0 files changed, 0 insertions, 0 deletions