Merge "soc: qcom: dcc_v2: Fix slab-out-of-bounds issue in dcc driver"

This commit is contained in:
qctecmdr 2023-12-19 00:27:38 -08:00 • committed by Gerrit - the friendly Code Review server
commit dcdd3702c8

View file

@ -612,7 +612,7 @@ static bool is_dcc_enabled(struct dcc_drvdata *drvdata)
bool dcc_enable = false;
int list;
for (list = 0; list < DCC_MAX_LINK_LIST; list++) {
for (list = 0; list < drvdata->nr_link_list; list++) {
if (drvdata->enable[list]) {
dcc_enable = true;
break;