msm: vidc: Fix use after free memory issue

One thread might free the video buffer structure in
msm_comm_flush() and other thread might still be using it
in msm_comm_qbuf() which raises use after free memory issue.
Fix the issue by using kref functions.

CRs-Fixed: 2075754
Change-Id: I27dc83031ec761b8fd5719a5f6ed3c2acf47e18b
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
4 files changed