diff options
| author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-05-09 12:01:27 -0600 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-15 08:27:47 +0200 |
| commit | e0df9595ca96607755a04929a7e9df665de01181 (patch) | |
| tree | cba1b127855239e5ecafa3e371dc876d31846eae /tools/perf/scripts/python/bin | |
| parent | 1db396648ca33eb92dd0ed5cc2ea2f58816eeb9a (diff) | |
drm: Balance error path for GEM handle allocation
[ Upstream commit 6984128d01cf935820a0563f3a00c6623ba58109 ]
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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
