]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
wlcore: use *ppos, not file->f_pos
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 17 Jun 2013 11:26:19 +0000 (15:26 +0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 29 Jun 2013 08:57:32 +0000 (12:57 +0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/net/wireless/ti/wlcore/debugfs.c

index c3e1f79c785697d95dfc9ccfac1e49410f263d8f..e17630c2a84948d40bb5d0f2c05f4ce1e8ccea2c 100644 (file)
@@ -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);