From: Dan Carpenter Date: Fri, 22 Feb 2019 06:36:41 +0000 (-0500) Subject: media: ivtv: update *pos correctly in ivtv_read_pos() X-Git-Tag: v3.16.74~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2f44eded64e65aaa1d4faa09476bf24a56a64fb;p=thirdparty%2Fkernel%2Fstable.git media: ivtv: update *pos correctly in ivtv_read_pos() commit f8e579f3ca0973daef263f513da5edff520a6c0d upstream. We had intended to update *pos, but the current code is a no-op. Fixes: 1a0adaf37c30 ("V4L/DVB (5345): ivtv driver for Conexant cx23416/cx23415 MPEG encoder/decoder") Signed-off-by: Dan Carpenter Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Ben Hutchings --- diff --git a/drivers/media/pci/ivtv/ivtv-fileops.c b/drivers/media/pci/ivtv/ivtv-fileops.c index e5ff6277ca854..d38cb158ddb36 100644 --- a/drivers/media/pci/ivtv/ivtv-fileops.c +++ b/drivers/media/pci/ivtv/ivtv-fileops.c @@ -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; }