|
@@ -515,7 +515,8 @@ static int write_buf(struct file *filp, const void *buf, u32 len, loff_t *off)
|
|
set_fs(KERNEL_DS);
|
|
set_fs(KERNEL_DS);
|
|
|
|
|
|
while (pos < len) {
|
|
while (pos < len) {
|
|
- ret = vfs_write(filp, (char *)buf + pos, len - pos, off);
|
|
|
|
|
|
+ ret = vfs_write(filp, (__force const char __user *)buf + pos,
|
|
|
|
+ len - pos, off);
|
|
/* TODO handle that correctly */
|
|
/* TODO handle that correctly */
|
|
/*if (ret == -ERESTARTSYS) {
|
|
/*if (ret == -ERESTARTSYS) {
|
|
continue;
|
|
continue;
|