diff options
| author | Dan Carpenter <[email protected]> | 2020-12-07 17:55:44 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2020-12-08 14:21:13 +0000 |
| commit | 8db06423e079b1f6c0657e5bebda0006acf75c3c (patch) | |
| tree | 6060f6b51705f9fbf920b28c83df532a8db0e395 /net/switchdev/switchdev.c | |
| parent | regulator: qcom-rpmh: Add support for PM8350/PM8350c (diff) | |
| download | kernel-8db06423e079b1f6c0657e5bebda0006acf75c3c.tar.gz kernel-8db06423e079b1f6c0657e5bebda0006acf75c3c.zip | |
regulator: da9121: Potential Oops in da9121_assign_chip_model()
There is a missing "return ret;" on this error path so we call
"da9121_check_device_type(i2c, chip);" which will end up dereferencing
"chip->regmap" and lead to an Oops.
Fixes: c860476b9e3a ("regulator: da9121: Add device variant regmaps")
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Adam Ward <[email protected]>
Link: https://lore.kernel.org/r/X85soGKnWAjPUA7a@mwanda
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
