diff options
| author | Ma Ke <make24@iscas.ac.cn> | 2024-09-05 10:09:17 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-10-22 15:51:35 +0200 |
| commit | 4d2296fb7c80fdc9925d29a8e85d617cad08731a (patch) | |
| tree | da7ba48faf1d9fa43ea331a608ea4f9aacb8c973 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 1f266957ae1207b0717c2d69096bc70654ae9fcb (diff) | |
pinctrl: apple: check devm_kasprintf() returned value
commit 665a58fe663ac7a9ea618dc0b29881649324b116 upstream.
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: a0f160ffcb83 ("pinctrl: add pinctrl/GPIO driver for Apple SoCs")
Signed-off-by: Ma Ke <make24@iscas.ac.cn>
Reviewed-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/20240905020917.356534-1-make24@iscas.ac.cn
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
