diff options
| author | Ma Ke <[email protected]> | 2024-09-05 02:09:17 +0000 |
|---|---|---|
| committer | Linus Walleij <[email protected]> | 2024-10-01 12:03:34 +0000 |
| commit | 665a58fe663ac7a9ea618dc0b29881649324b116 (patch) | |
| tree | ba0256ddb780a7f0fe903e7819dae5b7820be0c8 /drivers/acpi/cppc_acpi.c | |
| parent | Linux 6.12-rc1 (diff) | |
| download | kernel-665a58fe663ac7a9ea618dc0b29881649324b116.tar.gz kernel-665a58fe663ac7a9ea618dc0b29881649324b116.zip | |
pinctrl: apple: 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: [email protected]
Fixes: a0f160ffcb83 ("pinctrl: add pinctrl/GPIO driver for Apple SoCs")
Signed-off-by: Ma Ke <[email protected]>
Reviewed-by: Christophe JAILLET <[email protected]>
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'drivers/acpi/cppc_acpi.c')
0 files changed, 0 insertions, 0 deletions
