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

Commit 376a0081 authored by Yuanfang Zhang's avatar Yuanfang Zhang
Browse files

memory_dump: resolve the issue of configuring core_reg_numer



When the new core_reg_number value is the same as previous value,
writing to core_reg_number node cannot exit normally, this
change resolve this issue.

Change-Id: I6cbb301fc77a630aa9f01a68341c9510fdbd5c0f
Signed-off-by: default avatarYuanfang Zhang <zhangyuanfang@codeaurora.org>
parent 17439c2c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -168,8 +168,8 @@ static ssize_t core_reg_num_store(struct device *dev,
		goto err;
	}
	if (val == cpudata->core_reg_num) {
		ret = 0;
		goto err;
		mutex_unlock(&cpudata->mutex);
		return size;
	}

	mutex_unlock(&cpudata->mutex);