summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Yuan <shengquan.yuan@intel.com>2012-08-02 18:16:35 +0800
committerAustin Yuan <shengquan.yuan@intel.com>2012-08-08 11:22:36 +0800
commit40e5e45edf97049137bca014575607b52d3bca78 (patch)
treeafe8d3685a8b04d1470b0533d28a68d4ad7f01bd
parentc33be17dd8f2fcbd3c89a9cfd52471060fe1435a (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>
-rw-r--r--va/va.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/va/va.c b/va/va.c
index 6e8fada..66e0549 100644
--- a/va/va.c
+++ b/va/va.c
@@ -282,7 +282,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) {