]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/media/pci/ivtv/ivtv-fileops.c
media: ivtv: update *pos correctly in ivtv_read_pos()
[mirror_ubuntu-bionic-kernel.git] / drivers / media / pci / ivtv / ivtv-fileops.c
index c9bd018e53de607f63cfe1367404be228ec90806..e2b19c3eaa87633e8109d2da8c9571e7d95ab4a8 100644 (file)
@@ -420,7 +420,7 @@ static ssize_t ivtv_read_pos(struct ivtv_stream *s, char __user *ubuf, size_t co
 
        IVTV_DEBUG_HI_FILE("read %zd from %s, got %zd\n", count, s->name, rc);
        if (rc > 0)
-               pos += rc;
+               *pos += rc;
        return rc;
 }