summaryrefslogtreecommitdiff
path: root/va
diff options
context:
space:
mode:
authorAustin Yuan <shengquan.yuan@intel.com>2012-08-02 18:16:35 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2013-06-19 15:18:55 +0800
commit5b7741250252600aac4195114bb1917112780387 (patch)
treece848a52971b3dab0a8860e0ede89ae8aa27d817 /va
parent34b102240aaf71e0e3d09977bf4ca68c0bf2d03a (diff)
va.c: need to check the symbol before calling it
This is to fix Klockwork critical issue Signed-off-by: Austin Yuan <shengquan.yuan@intel.com> (cherry picked from commit 40e5e45edf97049137bca014575607b52d3bca78)
Diffstat (limited to 'va')
-rw-r--r--va/va.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/va/va.c b/va/va.c
index 54f3d02..851a41f 100644
--- a/va/va.c
+++ b/va/va.c
@@ -287,7 +287,7 @@ static VAStatus va_openDriver(VADisplay dpy, char *driver_name)
}
ctx->vtable_vpp = vtable_vpp;
- if (VA_STATUS_SUCCESS == vaStatus)
+ if (init_func && VA_STATUS_SUCCESS == vaStatus)
vaStatus = (*init_func)(ctx);
if (VA_STATUS_SUCCESS == vaStatus) {