Skip to content
Commit 825906f2 authored by Kunwu Chan's avatar Kunwu Chan Committed by Lee Jones
Browse files

mfd: tps6594: Add null pointer check to tps6594_device_init()

devm_kasprintf() returns a pointer to dynamically allocated memory
which can be NULL upon failure.

Fixes: 325bec71

 ("mfd: tps6594: Add driver for TI TPS6594 PMIC")
Suggested-by: default avatarLee Jones <lee@kernel.org>
Signed-off-by: default avatarKunwu Chan <chentao@kylinos.cn>
Link: https://lore.kernel.org/r/20231208033320.49345-1-chentao@kylinos.cn
Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent 4f9b632e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment