Skip to content
Commit 8cc31116 authored by Andrzej Hajda's avatar Andrzej Hajda Committed by Rafael J. Wysocki
Browse files

PM / OPP: fix off-by-one bug in dev_pm_opp_get_max_volt_latency loop



Reading array at given index before checking if index is valid results in
illegal memory access.

The bug was detected using KASAN framework.

Signed-off-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 0764c604
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment