Files
linux/drivers
Axel Lin a9bbb453b5 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>
2017-04-14 18:01:03 +01:00
..
2016-12-05 14:53:46 -05:00
2016-11-16 20:46:32 +01:00
2016-09-27 12:33:47 +02:00
2016-12-09 23:08:32 -05:00
2016-11-16 12:39:57 -07:00
2016-11-29 16:43:24 +01:00
2016-11-01 09:04:04 -06:00