>From 40e5e45edf97049137bca014575607b52d3bca78 Mon Sep 17 00:00:00 2001 From: Austin Yuan <shengquan.y...@intel.com> Date: Thu, 2 Aug 2012 18:16:35 +0800 Subject: [PATCH 1/4] va.c: need to check the symbol before calling it
This is to fix Klockwork critical issue Signed-off-by: Austin Yuan <shengquan.y...@intel.com> --- va/va.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 1.7.9.5 -- Thanks -Austin _______________________________________________ Libva mailing list Libva@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libva