mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
Merge "drivers: qcom: fix userspace write bootmaker issue"
This commit is contained in:
commit
cf4aadbdce
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue