This reverts 45b1a1b348ec1 due to regression report [1]. We need a better fix for the problem in question. [1] https://lore.kernel.org/linux-media/ltiok5ryos2yh6bvd2md3p7k73rd6eu6fwagn2b4ij7tuljntn@dx6o5ralryui v3: -- added Reported-by (Dmitry) -- added patch that re-shuffles instance creation order to match the destruction order (Bryan) Sergey Senozhatsky (2): media: venus: destroy hfi session after m2m_ctx release media: venus: match instance creation and destruction order drivers/media/platform/qcom/venus/core.c | 8 ++------ drivers/media/platform/qcom/venus/vdec.c | 18 +++++++++--------- drivers/media/platform/qcom/venus/venc.c | 18 +++++++++--------- 3 files changed, 20 insertions(+), 24 deletions(-) -- 2.47.1.613.gc27f4b7a9f-goog