staging: vc04_services: codec: Fix incorrect buffer cleanup 07/249307/1
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Thu, 13 Aug 2020 15:58:18 +0000 (16:58 +0100)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 10 Dec 2020 04:12:32 +0000 (13:12 +0900)
commit30dcbc16255df980f9834534dad52281a7926f74
tree4e095f48d46cc10b2e82c5ce6dd766fd891908ff
parentd681d0bc4f6623300182e2e4425b8870e7269705
staging: vc04_services: codec: Fix incorrect buffer cleanup

The allocated input and output buffers are initialised in
buf_init and should only be cleared up in buf_cleanup.
stop_streaming was (incorrectly) cleaning up the buffers to
avoid an issue in videobuf2 that had been fixed by the orphaned
buffer support.

Remove the erroneous cleanup.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
[sw0312.kim: cherry-pick rpi-5.4.y commit to fix video decoding seek issue]
Ref: https://github.com/raspberrypi/linux/pull/3790
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I38e3a257a941753b02e448d6d5dd1c8486b648f1
drivers/staging/vc04_services/bcm2835-codec/bcm2835-v4l2-codec.c