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

mfd: syscon: Fix null pointer dereference in of_syscon_register()

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

Fixes: e15d7f2b

 ("mfd: syscon: Use a unique name with regmap_config")
Signed-off-by: default avatarKunwu Chan <chentao@kylinos.cn>
Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20231204092443.2462115-1-chentao@kylinos.cn
Signed-off-by: default avatarLee Jones <lee@kernel.org>
parent 0c679fff
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