linux-next/drivers/opp
Dan Carpenter d5557b27fe opp: core: Fix off by one in dev_pm_opp_get_bw()
The "opp->bandwidth" array has "opp->opp_table->path_count" number of
elements.  It's allocated in _opp_allocate().  So this > needs to be >=
to prevent an out of bounds access.

Fixes: d78653dcd8 ("opp: core: implement dev_pm_opp_get_bw")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2024-12-02 11:30:38 +05:30
..
core.c opp: core: Fix off by one in dev_pm_opp_get_bw() 2024-12-02 11:30:38 +05:30
cpu.c OPP: Fix argument name in doc comment 2023-08-18 10:55:49 +05:30
debugfs.c OPP: debugfs: Fix warning around icc_get_name() 2024-03-11 10:39:24 +05:30
Kconfig drivers/opp: Remove "select SRCU" 2023-01-05 11:47:21 +05:30
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
of.c OPP: Introduce an OF helper function to inform if required-opps is used 2024-06-26 11:17:20 +05:30
opp.h OPP: Remove unused declarations in header file 2024-10-01 10:24:08 +05:30
ti-opp-supply.c opp: ti: Drop unnecessary of_match_ptr() 2024-09-04 20:43:41 +05:30