msm: vidc: Fix error handling for session init failure
When session_init command to HW fails, the newly created session is
freed. But this session exists in device->sessions list as it was
not removed from device sessions list. This can result in dangling
pointers and can cause list corruptions.
Change-Id: Iecc116d44e6cfb56364fd438acd98522c579f6fa
CRs-Fixed: 770877
Signed-off-by:
Praneeth Paladugu <ppaladug@codeaurora.org>
Loading
Please register or sign in to comment