[PATCH 1/3] drm: Cleanup after failing to create master->unique and dev->name

Chris Wilson chris at chris-wilson.co.uk
Sat Jul 24 10:56:39 PDT 2010


On Sat, 24 Jul 2010 18:29:35 +0100, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> @@ -323,7 +358,9 @@ int drm_setversion(struct drm_device *dev, void *data, struct drm_file *file_pri
>  			/*
>  			 * Version 1.1 includes tying of DRM to specific device
>  			 */
> -			drm_set_busid(dev, file_priv);
> +			retcode = drm_set_busid(dev, file_priv);
> +			if (retcode)
> +				goto done;

And actually returning the error code is breaking xorg 1.8.99...
Hmm.

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the dri-devel mailing list