diff options
author | Dave Airlie <airlied@redhat.com> | 2008-09-02 10:06:06 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2008-10-18 07:10:11 +1000 |
commit | 38eda21189b414b1520ea7aa0e71220796f7008f (patch) | |
tree | adb7b4b390507b12782d78de54639b67e377e8b0 /drivers/gpu | |
parent | dfcf96d09cff63c9aaa8e7c98bbc71e5073b1377 (diff) | |
download | kernel_samsung_tuna-38eda21189b414b1520ea7aa0e71220796f7008f.zip kernel_samsung_tuna-38eda21189b414b1520ea7aa0e71220796f7008f.tar.gz kernel_samsung_tuna-38eda21189b414b1520ea7aa0e71220796f7008f.tar.bz2 |
drm: fix sysfs error path.
Pointed out by Roel Kluin on dri-devel.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/drm_sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_sysfs.c b/drivers/gpu/drm/drm_sysfs.c index af211a0..1611b9b 100644 --- a/drivers/gpu/drm/drm_sysfs.c +++ b/drivers/gpu/drm/drm_sysfs.c @@ -184,7 +184,7 @@ int drm_sysfs_device_add(struct drm_minor *minor) err_out_files: if (i > 0) for (j = 0; j < i; j++) - device_remove_file(&minor->kdev, &device_attrs[i]); + device_remove_file(&minor->kdev, &device_attrs[j]); device_unregister(&minor->kdev); err_out: |