pmdomain: ti: Add a null pointer check to the omap_prm_domain_init
authorKunwu Chan <chentao@kylinos.cn>
Thu, 18 Jan 2024 05:42:57 +0000 (13:42 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 14 Feb 2024 09:26:11 +0000 (10:26 +0100)
commit5d7f58ee08434a33340f75ac7ac5071eea9673b3
tree63e4fa5aac5a671e1cbfc99336a46ac5451815f5
parente990f3fb926367f67ab3c2310997864f82a0dcd5
pmdomain: ti: Add a null pointer check to the omap_prm_domain_init

devm_kasprintf() returns a pointer to dynamically allocated memory
which can be NULL upon failure. Ensure the allocation was successful
by checking the pointer validity.

Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Link: https://lore.kernel.org/r/20240118054257.200814-1-chentao@kylinos.cn
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/ti/omap_prm.c