hardware/intel/libva
Revision | 5b7741250252600aac4195114bb1917112780387 (tree) |
---|---|
Zeit | 2013-06-19 16:18:55 |
Autor | Austin Yuan <shengquan.yuan@inte...> |
Commiter | Xiang, Haihao |
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)
@@ -287,7 +287,7 @@ static VAStatus va_openDriver(VADisplay dpy, char *driver_name) | ||
287 | 287 | } |
288 | 288 | ctx->vtable_vpp = vtable_vpp; |
289 | 289 | |
290 | - if (VA_STATUS_SUCCESS == vaStatus) | |
290 | + if (init_func && VA_STATUS_SUCCESS == vaStatus) | |
291 | 291 | vaStatus = (*init_func)(ctx); |
292 | 292 | |
293 | 293 | if (VA_STATUS_SUCCESS == vaStatus) { |