intel: Fix SIGSEGV in libdrm for heigth = 0 and width = 0
authorThomas Meyer <thomas@m3y3r.de>
Fri, 7 Nov 2014 18:43:04 +0000 (19:43 +0100)
committerDamien Lespiau <damien.lespiau@intel.com>
Thu, 20 Nov 2014 14:10:41 +0000 (14:10 +0000)
commit4f44ecc6beeaac5064871d41dcc4693b8e313859
tree277166690811a397981bb1acfdac515cb542c042
parent5306078bbe21e05365700c186c6c8a1ae86b776c
intel: Fix SIGSEGV in libdrm for heigth = 0 and width = 0

drm_intel_gem_bo_free() crashes because the list bo_gem->vma_list is not
yet initialised, but the error path tries to free it.

See also https://bugs.freedesktop.org/show_bug.cgi?id=75844

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
intel/intel_bufmgr_gem.c