summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/coda/coda.h
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2018-11-05 16:25:00 +0100
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-11-23 11:21:37 +0100
commit6c0f5d236fd0205a8dca24b82cfad1b1c6c0a1e0 (patch)
treeb410639494a6aba022d5b6a83622c87c10682608 /drivers/media/platform/coda/coda.h
parentmedia: coda: fix memory corruption in case more than 32 instances are opened (diff)
downloadlinux-6c0f5d236fd0205a8dca24b82cfad1b1c6c0a1e0.tar.xz
linux-6c0f5d236fd0205a8dca24b82cfad1b1c6c0a1e0.zip
media: coda: store unmasked fifo position in meta
Storing the unmasked kfifo->in position as meta->start and ->end allows to more easily compare a point past meta->end with the current kfifo->in. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Hans Verkuil <hansverk@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform/coda/coda.h')
-rw-r--r--drivers/media/platform/coda/coda.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/platform/coda/coda.h b/drivers/media/platform/coda/coda.h
index 680c7035c9d4..baa04b0f21fb 100644
--- a/drivers/media/platform/coda/coda.h
+++ b/drivers/media/platform/coda/coda.h
@@ -145,8 +145,8 @@ struct coda_buffer_meta {
u32 sequence;
struct v4l2_timecode timecode;
u64 timestamp;
- u32 start;
- u32 end;
+ unsigned int start;
+ unsigned int end;
};
/* Per-queue, driver-specific private data */