]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm-convert-to-idr_alloc-fix-fix
authorJiri Slaby <jslaby@suse.cz>
Wed, 20 Feb 2013 02:16:13 +0000 (13:16 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:53:45 +0000 (16:53 +1100)
fix drm_gem_flink_ioctl() return value

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Artem Savkov <artem.savkov@gmail.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/gpu/drm/drm_gem.c

index f1700ef27d1407fb341211a35269337a6f4f00bf..af779ae19ebf696ff3c5c2c90aaca169dfaf701b 100644 (file)
@@ -460,6 +460,7 @@ drm_gem_flink_ioctl(struct drm_device *dev, void *data,
 
                if (ret < 0)
                        goto err;
+               ret = 0;
 
                /* Allocate a reference for the name table.  */
                drm_gem_object_reference(obj);