]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3ad3f5bb88cf91167ae542bd2a794f97dedcf5c0
tree60cc9e474322afca6d914b2663c6b0acc767b095
parent5f58c2dfc00e76a31956b29d6078770e2c4c3bcd
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