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

Markus Elfring Markus.Elfring at web.de
Tue Apr 1 06:18:17 UTC 2025


> 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


More information about the dri-devel mailing list