Xidong Wang 6be1187dbf drm/i915: Do no use kfree() to free a kmem_cache_alloc() return value
Along the eb_lookup_vmas() error path, the return value from
kmem_cache_alloc() was freed using kfree(). Fix it to use the proper
kmem_cache_free() instead.

Fixes: d1b48c1e7184 ("drm/i915: Replace execbuf vma ht with an idr")
Signed-off-by: Xidong Wang <wangxidong_97@163.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: <stable@vger.kernel.org> # v4.14+
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180404093824.9313-1-chris@chris-wilson.co.uk
2018-04-04 20:53:51 +01:00
..
2018-02-15 14:50:32 -08:00
2018-03-02 10:44:44 +01:00
2018-02-02 10:01:04 -08:00
2018-02-26 09:28:35 -08:00
2018-03-14 15:39:33 -04:00
2018-03-05 07:57:41 -05:00
2018-03-09 09:33:48 -08:00
2018-03-21 11:10:20 +01:00
2018-02-01 10:31:17 -08:00
2018-03-08 10:39:58 -07:00
2018-01-02 14:46:35 +01:00
2018-03-28 14:30:41 +10:00
2018-03-28 14:30:41 +10:00
2018-03-12 15:11:59 +05:30
2018-03-14 13:01:14 -07:00
2017-12-18 16:47:27 +01:00
2018-02-05 10:07:40 -08:00
2018-02-06 09:59:40 -08:00
2018-03-20 16:59:01 -07:00
2017-12-19 10:56:53 +01:00
2018-01-22 16:45:26 +01:00
2018-03-28 14:30:41 +10:00
2018-03-25 07:04:00 -10:00
2018-01-09 16:15:20 +01:00
2018-03-28 14:30:41 +10:00
2018-03-09 16:54:18 -08:00
2018-02-01 10:31:17 -08:00
2018-02-06 09:59:40 -08:00