diff options
author | Dave Airlie <airlied@redhat.com> | 2008-09-02 10:07:14 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-09-02 10:08:26 +1000 |
commit | 99f8cce3eae79c9cf5e9897ef1af8eac24b38c09 (patch) | |
tree | d1be5fb07d3a820dce5e8e43afbcc1fb5aa03f90 | |
parent | cd7d71f19cf2a16521c9da1815421c6a5f12a58e (diff) |
drm: fix sysfs error path.
Pointed out by Roel Kluin on dri-devel.
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | linux-core/drm_sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_sysfs.c b/linux-core/drm_sysfs.c index 32759424..6de93679 100644 --- a/linux-core/drm_sysfs.c +++ b/linux-core/drm_sysfs.c @@ -188,7 +188,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: |