Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 961c7b9f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: Add check of len and base before dcc_config_add"

parents 65a1c297 2ec386cf
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -990,6 +990,14 @@ static ssize_t dcc_store_config(struct device *dev,
		apb_bus = 1;
	}

	if (len == 0)
		len = 1;

	if (base == 0) {
		dev_err(drvdata->dev, "DCC: Invalid  Address\n");
		return -EINVAL;
	}

	ret = dcc_config_add(drvdata, base, len, apb_bus);
	if (ret)
		return ret;