drm: fix sysfs error path.

Pointed out by Roel Kluin on dri-devel.

Signed-off-by: Dave Airlie <airlied@redhat.com>
main
Dave Airlie 2008-09-02 10:07:14 +10:00
parent cd7d71f19c
commit 99f8cce3ea
1 changed files with 1 additions and 1 deletions

View File

@ -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: