msm: vidc: Fix NULL pointer exception
msm: vidc: Fix NULL pointer exception

The error check to validate the device open failure has an
issue where it is checking the wrong variable. This lead
to NULL pointer access. This change fixes the same.

CRs-Fixed: 417092
Change-Id: I635fc43b19a368c2477ab41c9d6d28ec9dc8524e
Signed-off-by: Praneeth Paladugu <0e3ab3e485f5469ea79d32d8876d1e2069da6bd5@codeaurora.org>

TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas