diff options
author | YoungJun Cho <yj44.cho@samsung.com> | 2013-06-27 08:58:33 +0900 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-06-28 12:31:23 +1000 |
commit | 2e07fb229396f99fc173d8612f0f83ea9de0341b (patch) | |
tree | ae4e6702902b9f42bd00951c84dfe3850d1b6dd8 /drivers/gpu/drm/drm_prime.c | |
parent | 4368dd846d067ed7d11281050e7676ae614d6053 (diff) | |
download | lwn-2e07fb229396f99fc173d8612f0f83ea9de0341b.tar.gz lwn-2e07fb229396f99fc173d8612f0f83ea9de0341b.zip |
drm/gem: fix not to assign error value to gem name
If idr_alloc() is failed, obj->name can be error value. Also
it cleans up duplicated flink processing code.
This regression has been introduced in
commit 2e928815c1886fe628ed54623aa98d0889cf5509
Author: Tejun Heo <tj@kernel.org>
Date: Wed Feb 27 17:04:08 2013 -0800
drm: convert to idr_alloc()
Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: stable@vger.kernel.org
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_prime.c')
0 files changed, 0 insertions, 0 deletions