diff options
author | Beniamino Galvani <b.galvani@gmail.com> | 2014-06-22 15:31:41 (GMT) |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-08-05 17:02:51 (GMT) |
commit | 48a1e1b50d9e848fea9708795bd5d9aa97aa9c2a (patch) | |
tree | 1e7f865b19606feb362990b27414506bca58ca14 /sound/isa | |
parent | 7171511eaec5bf23fb06078f59784a3a0626b38f (diff) | |
download | linux-48a1e1b50d9e848fea9708795bd5d9aa97aa9c2a.tar.xz |
regulator: act8865: fix parsing of platform data
The driver loops through all available regulators (ACT8865_REG_NUM)
and accesses pdata->regulators[i].platform_data without checking the
actual value of num_regulators in platform data, potentially causing a
invalid memory access.
Fix this and look up the regulator init_data by id in platform data.
Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Tested-by Wenyou.Yang <wenyou.yang@atmel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/isa')
0 files changed, 0 insertions, 0 deletions