Re: [PATCH v3] backlight: pm8941: Add NULL check in wled_configure()

From: Markus Elfring
Date: Tue Apr 01 2025 - 02:32:49 EST


> devm_kasprintf() return NULL if memory allocation fails. Currently,

call? failed?


> Add NULL check after devm_kasprintf() to prevent this issue.

Do you propose to improve this function implementation a bit more?

Regards,
Markus