diff options
author | Austin Yuan <shengquan.yuan@intel.com> | 2012-08-02 18:16:35 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2013-06-19 15:18:55 +0800 |
commit | 5b7741250252600aac4195114bb1917112780387 (patch) | |
tree | ce848a52971b3dab0a8860e0ede89ae8aa27d817 /va | |
parent | 34b102240aaf71e0e3d09977bf4ca68c0bf2d03a (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |