diff options
author | Axel Lin <[email protected]> | 2017-04-14 10:50:43 +0800 |
---|---|---|
committer | Mark Brown <[email protected]> | 2017-04-14 18:01:03 +0100 |
commit | a9bbb453b50c91295ab362e4832eb37fd4e6785d (patch) | |
tree | cf548ad6e42a431228f1d360905ef3ad852db6da /tools/perf/scripts/python | |
parent | 9dee7a72d0c7cdfa2573c48b1e5f928c721d54d5 (diff) |
regulator: vctrl: Fix out of bounds array access for vctrl->vtable
Current code only allocates rdesc->n_voltages entries for vctrl->vtable.
Thus use rdesc->n_voltages instead of n_voltages in the for loop.
While at it, also switch to use devm_kcalloc instead of devm_kmalloc_array
+ __GFP_ZERO flag and fix the argument order.
Signed-off-by: Axel Lin <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions