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

Commit 1236b719 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "coresight: tgu: Correct the check of timer_refcnt"

parents 882b48a5 a75a7a53
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -336,7 +336,7 @@ static ssize_t tgu_set_timers(struct device *dev, struct device_attribute *attr,
	unsigned long value;
	int step;

	if (drvdata->select_refcnt >= MAX_TIMER_COUNTER_SETS) {
	if (drvdata->timer_refcnt >= MAX_TIMER_COUNTER_SETS) {
		dev_err(drvdata->dev, " Too many groups are being configured");
		return -EINVAL;
	}