msm: vidc: Add check for hfi callback pointers

Ensure that hfi callback functions get called only
if they have been defined. Without this change
the device could crash if an uninitialized
callback function pointer gets called.

Change-Id: I23b6b6493f0aa8533be7f8a8bb8d9fb8ec431d18
Signed-off-by: Arun Menon <menon@codeaurora.org>
[smuckle@codeaurora.org: backported from msm-3.7]
Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
7 files changed