media: rpivid: Ensure IRQs have completed before uniniting context
authorJohn Cox <jc@kynesim.co.uk>
Wed, 22 Sep 2021 18:05:30 +0000 (19:05 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:24 +0000 (16:04 +0000)
commit1774a95d9ca64d9e8300f9998d69c00dfe240c7c
treea75af35affd7f6328b2bf28884a7a93f07ffcba4
parent5233dc331ef00e975119f74b2976f0da05aeea41
media: rpivid: Ensure IRQs have completed before uniniting context

Before uniniting the decode context sync with the IRQ queues to ensure
that decode no longer has any buffers in use.  This fixes a problem that
manifested as ffmpeg leaking CMA buffers when it did a stream off on
OUTPUT before CAPTURE, though in reality it was probably much more
dangerous than that.

Signed-off-by: John Cox <jc@kynesim.co.uk>
drivers/staging/media/rpivid/rpivid_h265.c