mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-12 06:01:58 +00:00
mfd: tps6594: Add null pointer check to tps6594_device_init()
[ Upstream commit825906f2eb] devm_kasprintf() returns a pointer to dynamically allocated memory which can be NULL upon failure. Fixes:325bec7157("mfd: tps6594: Add driver for TI TPS6594 PMIC") Suggested-by: Lee Jones <lee@kernel.org> Signed-off-by: Kunwu Chan <chentao@kylinos.cn> Link: https://lore.kernel.org/r/20231208033320.49345-1-chentao@kylinos.cn Signed-off-by: Lee Jones <lee@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
8fed64f143
commit
c18949d7d1
1 changed files with 3 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue