summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/pv88060-regulator.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2017-04-14 10:50:43 +0800
committerMark Brown <broonie@kernel.org>2017-04-14 18:01:03 +0100
commita9bbb453b50c91295ab362e4832eb37fd4e6785d (patch)
treecf548ad6e42a431228f1d360905ef3ad852db6da /drivers/regulator/pv88060-regulator.c
parent9dee7a72d0c7cdfa2573c48b1e5f928c721d54d5 (diff)
downloadtalos-op-linux-a9bbb453b50c91295ab362e4832eb37fd4e6785d.tar.gz
talos-op-linux-a9bbb453b50c91295ab362e4832eb37fd4e6785d.zip
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 <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/pv88060-regulator.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud