diff options
| author | 2026-02-22 18:40:35 +0800 | |
|---|---|---|
| committer | 2026-02-23 14:52:16 +0000 | |
| commit | 4b73231b2a61c4142a027613d277a19c484dfcc3 (patch) | |
| tree | f80fee5f9709195f2a899c4957aa50c7e5652f4c /tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com | |
| parent | regulator: dt-bindings: mt6359: make regulator names unique (diff) | |
regulator: tps65185: check devm_kzalloc() result in probe
tps65185_probe() dereferences the allocation result immediately by using data->regmap. If devm_kzalloc() returns NULL under memory pressure, this leads to a NULL pointer dereference.
Add the missing allocation check and return -ENOMEM on failure.
Signed-off-by: Yufan Chen <ericterminal@gmail.com>
Link: https://patch.msgid.link/20260222104035.90790-1-ericterminal@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
