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

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

Merge "drivers: qcom: fix userspace write bootmaker issue"

parents 72959bce b48d31df
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;