diff options
| author | Yufan Chen <ericterminal@gmail.com> | 2026-02-22 18:40:35 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-02-23 14:52:16 +0000 |
| commit | 4b73231b2a61c4142a027613d277a19c484dfcc3 (patch) | |
| tree | f80fee5f9709195f2a899c4957aa50c7e5652f4c /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | be704107e79696e855aa41e901a926039b6d2410 (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/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
