mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
drm: fix sysfs error path.
Pointed out by Roel Kluin on dri-devel. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
dfcf96d09c
commit
38eda21189
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in a new issue