]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Fix an error handling path in 'mock_gem_device()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 19 Jul 2017 22:35:03 +0000 (00:35 +0200)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 20 Jul 2017 10:50:12 +0000 (11:50 +0100)
commitc7c5e72d1ee066e2639a2fc76c727cabe5af75e3
tree3ec2d7e7e7db6053551a2386a8befbeadf9a19f0
parent8aeeb2d27467c5cb9b5b01b28adc4fd89e57deff
drm/i915/selftests: Fix an error handling path in 'mock_gem_device()'

Goto the right label in case of error, otherwise there is a leak.
This has been introduced by d8a25704ad66. In this patch a goto has not been
updated.

Fixes: d8a25704ad66 ("drm/i915: Create a kmem_cache to allocate struct i915_priolist from")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://patchwork.freedesktop.org/patch/msgid/20170719223503.30580-1-christophe.jaillet@wanadoo.fr
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/selftests/mock_gem_device.c