OSDN Git Service

avoid NULL pointer deref in i965_CreateConfig
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Thu, 10 Aug 2017 18:15:57 +0000 (11:15 -0700)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 11 Aug 2017 00:08:36 +0000 (08:08 +0800)
commitd3d961aa2a8ed3ac092cd5994378ae5ff9248fe4
treec4e04e120f2223302bfe101f47d05e8f622283e4
parent8718ff7dea8485aba2c67350521ae8d00e118d75
avoid NULL pointer deref in i965_CreateConfig

The attrib_found pointer variable might be NULL in many cases.
Thus, check it before attempting to dereference it.

Fixes #246

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
src/i965_drv_video.c