drm/i915/selftests: Fix an error handling path in 'mock_gem_device()'
authorChristophe JAILLET <[email protected]>
Wed, 19 Jul 2017 22:35:03 +0000 (00:35 +0200)
committerChris Wilson <[email protected]>
Thu, 20 Jul 2017 10:50:12 +0000 (11:50 +0100)
commita5ec7fe81a6ec38cb8b8a798d0552cbcadce7aa9
tree3ec2d7e7e7db6053551a2386a8befbeadf9a19f0
parentbca2bf2a8f1dc32050fab1934d6490106e498dd6
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 c5cf9a9147ff. In this patch a goto has not been
updated.

Fixes: c5cf9a9147ff ("drm/i915: Create a kmem_cache to allocate struct i915_priolist from")
Signed-off-by: Christophe JAILLET <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Tvrtko Ursulin <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
drivers/gpu/drm/i915/selftests/mock_gem_device.c