|
@@ -194,7 +194,7 @@ static ssize_t musb_test_mode_write(struct file *file,
|
|
|
|
|
|
memset(buf, 0x00, sizeof(buf));
|
|
memset(buf, 0x00, sizeof(buf));
|
|
|
|
|
|
- if (copy_from_user(&buf, ubuf, min_t(size_t, sizeof(buf) - 1, count)))
|
|
|
|
|
|
+ if (copy_from_user(buf, ubuf, min_t(size_t, sizeof(buf) - 1, count)))
|
|
return -EFAULT;
|
|
return -EFAULT;
|
|
|
|
|
|
if (!strncmp(buf, "force host", 9))
|
|
if (!strncmp(buf, "force host", 9))
|