提交 38eda211 编写于 作者: D Dave Airlie 提交者: Dave Airlie

drm: fix sysfs error path.

Pointed out by Roel Kluin on dri-devel.
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 dfcf96d0
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册