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

Commit b48d31df authored by Lei wang's avatar Lei wang Committed by Gerrit - the friendly Code Review server
Browse files

drivers: qcom: fix userspace write bootmaker issue



The write interface return value does not meet linux standard
so it does not work well when user try to echo new marker.

Change-Id: I5d2d9b0f374f0ffa8d9a500b453828d42e2d0a63
Signed-off-by: default avatarLei wang <leiwan@codeaurora.org>
parent e4d3a647
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -189,7 +189,7 @@ static ssize_t bootkpi_writer(struct kobject *obj, struct kobj_attribute *attr,
	if (count >= MAX_STRING_LEN)
		return -EINVAL;

	rc = scnprintf(buf, count, "%s", user_buffer);
	rc = scnprintf(buf, sizeof(buf) - 1, "%s", user_buffer);
	if (rc < 0)
		return rc;