aboutsummaryrefslogtreecommitdiff
path: root/lib/flex_array.c
diff options
context:
space:
mode:
authorChander Kashyap <chander.kashyap@linaro.org>2014-05-16 16:21:17 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-06-30 20:13:59 -0700
commitd9d4f29b1e0546096112fd9586e700db26af5379 (patch)
tree6514324894a58fca5097b36bb79b7ba0e0075a8f /lib/flex_array.c
parenta1e7be05dd5f0c6f8e98fcbcd5a1a2ee55355e6b (diff)
PM / OPP: fix incorrect OPP count handling in of_init_opp_table
commit 086abb58590a4df73e8a6ed71fd418826937cd46 upstream. In of_init_opp_table function, if a failure to add an OPP is detected, the count of OPPs, yet to be added is not updated. Fix this by decrementing this count on failure as well. Signed-off-by: Chander Kashyap <k.chander@samsung.com> Signed-off-by: Inderpal Singh <inderpal.s@samsung.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Nishanth Menon <nm@ti.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/flex_array.c')
0 files changed, 0 insertions, 0 deletions