Loading arch/arm/mach-msm/hsic_sysmon_test.c +5 −1 Original line number Diff line number Diff line Loading @@ -63,9 +63,13 @@ static ssize_t sysmon_test_write(struct file *file, const char __user *ubuf, if (!dev) return -ENODEV; /* Add check for user buf count greater than RD_BUF_SIZE */ if (count > RD_BUF_SIZE) count = RD_BUF_SIZE; if (copy_from_user(dev->buf, ubuf, count)) { pr_err("error copying for writing"); return 0; return -EFAULT; } ret = hsic_sysmon_write(id, dev->buf, count, 1000); Loading Loading
arch/arm/mach-msm/hsic_sysmon_test.c +5 −1 Original line number Diff line number Diff line Loading @@ -63,9 +63,13 @@ static ssize_t sysmon_test_write(struct file *file, const char __user *ubuf, if (!dev) return -ENODEV; /* Add check for user buf count greater than RD_BUF_SIZE */ if (count > RD_BUF_SIZE) count = RD_BUF_SIZE; if (copy_from_user(dev->buf, ubuf, count)) { pr_err("error copying for writing"); return 0; return -EFAULT; } ret = hsic_sysmon_write(id, dev->buf, count, 1000); Loading