OSDN Git Service

drm/i915: don't leak the pin_map on error
authorMatthew Auld <matthew.auld@intel.com>
Thu, 1 Mar 2018 11:46:39 +0000 (11:46 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 8 May 2018 12:16:20 +0000 (13:16 +0100)
commitaaefa06a0ea845a7088585ca42259515769ea496
tree60cc9e474322afca6d914b2663c6b0acc767b095
parent7c2f5bc5f0f41a3e294f5fa3b010a10f47512706
drm/i915: don't leak the pin_map on error

Add some onion to populate_lr_context.

v2: prefer err_unpin_ctx
    drop the fixes tag, worst case we just spew a warn before everything
    is cleaned up and balance is restored

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180301114639.510-1-matthew.auld@intel.com
drivers/gpu/drm/i915/intel_lrc.c