]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Use the correct destructor for freeing requests on error
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 21 May 2015 20:01:45 +0000 (21:01 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 22 May 2015 06:53:48 +0000 (08:53 +0200)
commit824ba3ad589bcd818f697b461c538c0ee9a15a08
tree43a4d966072bddfaa58d34b91b532cfe1af6de1e
parent17e9ccd009c072904c8a97d15f7df460866de303
drm/i915: Use the correct destructor for freeing requests on error

After allocating from the slab cache, we then need to free the request
back into the slab cache upon error (and not call kfree as that leads
to eventual memory corruption).

Fixes regression from
commit 26fbfb5c282c9e66f5c80da51a9ce6116616e426
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Tue Apr 7 16:20:57 2015 +0100

    drm/i915: Use a separate slab for requests

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c