wlcore: use *ppos, not file->f_pos
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
c04eba722f
commit
05c8aaa960
1 changed files with 2 additions and 2 deletions
|
@ -1056,7 +1056,7 @@ static ssize_t dev_mem_read(struct file *file,
|
|||
return -EINVAL;
|
||||
|
||||
memset(&part, 0, sizeof(part));
|
||||
part.mem.start = file->f_pos;
|
||||
part.mem.start = *ppos;
|
||||
part.mem.size = bytes;
|
||||
|
||||
buf = kmalloc(bytes, GFP_KERNEL);
|
||||
|
@ -1137,7 +1137,7 @@ static ssize_t dev_mem_write(struct file *file, const char __user *user_buf,
|
|||
return -EINVAL;
|
||||
|
||||
memset(&part, 0, sizeof(part));
|
||||
part.mem.start = file->f_pos;
|
||||
part.mem.start = *ppos;
|
||||
part.mem.size = bytes;
|
||||
|
||||
buf = kmalloc(bytes, GFP_KERNEL);
|
||||
|
|
Loading…
Reference in a new issue