Skip to content
Unverified Commit ca0e36e3 authored by Jerome Neanne's avatar Jerome Neanne Committed by Mark Brown
Browse files

regulator: tps6594-regulator: Fix random kernel crash



Random kernel crash detected in TI CICD when regulator driver is added.
This is root caused to irq index increment being done twice causing
irq_data being allocated outside of the range.

- Rework tps6594_request_reg_irqs with correct index increment
- Adjust irq_data kmalloc size to the exact size needed for the device

This has been reported on TI mainline. No public bug report associated.

Reported-by: default avatarUdit Kumar <u-kumar1@ti.com>
Fixes: f17ccc5d ("regulator: tps6594-regulator: Add driver for TI TPS6594 regulators")
Signed-off-by: default avatarJerome Neanne <jneanne@baylibre.com>
Link: https://lore.kernel.org/r/20230828-tps6594_random_boot_crash_fix-v1-1-f29cbf9ddb37@baylibre.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c6929055
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