diff options
author | Ian Romanick <[email protected]> | 2013-04-08 20:00:30 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2013-04-12 16:24:48 -0700 |
commit | f730c210b89ab8eb2dd5f346a68d06bd05386a37 (patch) | |
tree | 6d84e6217d44cccf29b2b2aa64b8fc119565304c /src/gallium/targets/opencl/Makefile.am | |
parent | 2cc0b3294ae0b1181bdcbca91fd68ebab374dbb2 (diff) |
egl/dri2: NULL check value returned by dri2_create_surface
dri2_create_surface can fail for a variety of reasons, including bad
input data. Dereferencing the NULL pointer and crashing is not okay.
Fixes issue identified by Klocwork analysis:
Pointer 'surf' returned from call to function 'dri2_create_surface'
at line 285 may be NULL and will be dereferenced at line 291.
NOTE: This is a candidate for the stable branches.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium/targets/opencl/Makefile.am')
0 files changed, 0 insertions, 0 deletions