Searched hist:"6984128 d01cf935820a0563f3a00c6623ba58109" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_gem.c | diff 6984128d01cf935820a0563f3a00c6623ba58109 Mon Jan 04 04:10:59 CST 2016 Chris Wilson <chris@chris-wilson.co.uk> drm: Balance error path for GEM handle allocation
The current error path for failure when establishing a handle for a GEM object is unbalance, e.g. we call object_close() without calling first object_open(). Use the typical onion structure to only undo what has been set up prior to the error.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
|