diff options
author | Beniamino Galvani <[email protected]> | 2014-06-22 17:31:41 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2014-08-05 18:02:51 +0100 |
commit | 48a1e1b50d9e848fea9708795bd5d9aa97aa9c2a (patch) | |
tree | 1e7f865b19606feb362990b27414506bca58ca14 /net/lapb/lapb_subr.c | |
parent | 7171511eaec5bf23fb06078f59784a3a0626b38f (diff) |
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 <[email protected]>
Tested-by Wenyou.Yang <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions