media: allegro: verify source and destination buffer in VCU response
authorMichael Tretter <m.tretter@pengutronix.de>
Mon, 16 Mar 2020 15:26:35 +0000 (16:26 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 20 Mar 2020 08:26:32 +0000 (09:26 +0100)
commit3b78f8a21ed685f13e01c54fd389ba78d8c317e4
treee1da76b25d46036f54126ca2154874e73e369bad
parentc59de02d10f5b082af0554c4ca736b0ce765865f
media: allegro: verify source and destination buffer in VCU response

The PUT_STREAM_BUFFER and ENCODE_FRAME request have fields that allow to
pass arbitrary 64 bit values through the firmware to the ENCODE_FRAME
response. Use these values to verify that the buffers when finishing the
frame are actually the same buffers that have been sent for encoding a
frame.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/allegro-dvt/allegro-core.c