Skip to content

Commit 05c8aaa

Browse files
author
Al Viro
committed
wlcore: use *ppos, not file->f_pos
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent c04eba7 commit 05c8aaa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/net/wireless/ti/wlcore/debugfs.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ static ssize_t dev_mem_read(struct file *file,
10561056
return -EINVAL;
10571057

10581058
memset(&part, 0, sizeof(part));
1059-
part.mem.start = file->f_pos;
1059+
part.mem.start = *ppos;
10601060
part.mem.size = bytes;
10611061

10621062
buf = kmalloc(bytes, GFP_KERNEL);
@@ -1137,7 +1137,7 @@ static ssize_t dev_mem_write(struct file *file, const char __user *user_buf,
11371137
return -EINVAL;
11381138

11391139
memset(&part, 0, sizeof(part));
1140-
part.mem.start = file->f_pos;
1140+
part.mem.start = *ppos;
11411141
part.mem.size = bytes;
11421142

11431143
buf = kmalloc(bytes, GFP_KERNEL);

0 commit comments

Comments
 (0)