msm: vidc: Fix use-after-free memory failure
If video core initialization failed then video driver is getting
the first instance from core->instances.list in locked context
and calling msm_comm_print_debug_info() after unlock where the
instance info will be printed, but after unlock the instance
may be free'd by other client threads which raises use-after-free
memory issue. Resolve the issue by removing call to function
msm_comm_print_debug_info() as core initialization failure
will call msm_comm_generate_sys_error() later which will print
instance info in locked context.
CRs-Fixed: 2075773
Change-Id: I0bf6caab9641c0ee54e3d9e909e5eb95293fbfda
Signed-off-by:
Maheshwar Ajja <majja@codeaurora.org>
Loading
Please register or sign in to comment