]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/regulator/tps65217-regulator.c
regulator: tps65217: Fix NULL pointer dereference on probe
authorAnton Vasilyev <vasilyev@ispras.ru>
Fri, 27 Jul 2018 13:59:29 +0000 (16:59 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 30 Jul 2018 08:41:04 +0000 (09:41 +0100)
commit4f919ca2bf6da826ba1a4316e1b8e9c94e5dbeb2
tree06ab96dce6a71e22f307593498fbb084e00d7ed7
parent6c0b319c0306accd92dc1601f8bf42adc147d4bf
regulator: tps65217: Fix NULL pointer dereference on probe

There is no check that tps->strobes is allocated successfully in
tps65217_regulator_probe().
The patch adds corresponding check.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Anton Vasilyev <vasilyev@ispras.ru>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/tps65217-regulator.c