Commit 38eda211 authored by Dave Airlie's avatar Dave Airlie Committed by Dave Airlie

drm: fix sysfs error path.

Pointed out by Roel Kluin on dri-devel.
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent dfcf96d0
...@@ -184,7 +184,7 @@ int drm_sysfs_device_add(struct drm_minor *minor) ...@@ -184,7 +184,7 @@ int drm_sysfs_device_add(struct drm_minor *minor)
err_out_files: err_out_files:
if (i > 0) if (i > 0)
for (j = 0; j < i; j++) 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); device_unregister(&minor->kdev);
err_out: err_out:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment