drm/i915/gtt: Onionify error handling for gen6_ppgtt_create
authorChris Wilson <[email protected]>
Tue, 12 Jun 2018 08:18:15 +0000 (09:18 +0100)
committerChris Wilson <[email protected]>
Tue, 12 Jun 2018 11:57:18 +0000 (12:57 +0100)
commita9ded78535a109389cd2ca38a22c8d5c0099f71e
treea6c39488bbcaefb1e26a65df8a43d21b4021600d
parent35ac40d8b65ab5bd09b683720bca96a1f5a0625b
drm/i915/gtt: Onionify error handling for gen6_ppgtt_create

Pull the empty stubs together into the top level gen6_ppgtt_create, and
tear each one down on error in proper onion order (rather than use
Joonas' pet hate of calling the cleanup function in indeterminable
state).

Signed-off-by: Chris Wilson <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: Mika Kuoppala <[email protected]>
Cc: Matthew Auld <[email protected]>
Reviewed-by: Matthew Auld <[email protected]>
Reviewed-by: Joonas Lahtinen <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/i915_gem_gtt.c