diff options
author | Austin Yuan <shengquan.yuan@gmail.com> | 2013-02-05 14:00:15 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2013-06-19 15:00:43 +0800 |
commit | 59eed897dd7902aad19af1a4de8e1e4b6c160785 (patch) | |
tree | 590a5cf7dfb710832f65b3b5218b787d9d4be74a /va | |
parent | 4da344aa736dc5defaf17c5353f0c17236fe0d10 (diff) |
va_x11: fix klockscan issue (details is bellow)
File: va_x11.c
Function: va_DisplayContextGetDriverName -> va_DRI2GetDriverName -> dri2_util.c:isDRI2Connected
Line: 154 -> 84 -> dri2_util.c:184
Code:
TRACEBACK
va_x11.c:151: driver_name is NULL
va_x11.c:154: 'driver_name' is passed to function 'va_DRI2GetDriverName'.
dri2_util.c:84: 'driver_name' is passed to function 'isDRI2Connected'.
dri2_util.c:184: 'driver_name' is explicitly dereferenced.
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
(cherry picked from commit c87699f32c6c79905a2fd8675cd19f22e1f4b024)
Diffstat (limited to 'va')
-rw-r--r-- | va/x11/va_x11.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/va/x11/va_x11.c b/va/x11/va_x11.c index 44c3330..c0dc69a 100644 --- a/va/x11/va_x11.c +++ b/va/x11/va_x11.c @@ -136,7 +136,9 @@ static VAStatus va_DisplayContextGetDriverName ( if (driver_name) *driver_name = NULL; - + else + return VA_STATUS_ERROR_UNKNOWN; + vaStatus = va_DRI2GetDriverName(pDisplayContext, driver_name); if (vaStatus != VA_STATUS_SUCCESS) vaStatus = va_NVCTRL_GetDriverName(pDisplayContext, driver_name); |