We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7604748 commit 5b1834dCopy full SHA for 5b1834d
drivers/gpu/drm/drm_file.c
@@ -964,6 +964,10 @@ void drm_show_fdinfo(struct seq_file *m, struct file *f)
964
struct drm_file *file = f->private_data;
965
struct drm_device *dev = file->minor->dev;
966
struct drm_printer p = drm_seq_file_printer(m);
967
+ int idx;
968
+
969
+ if (!drm_dev_enter(dev, &idx))
970
+ return;
971
972
drm_printf(&p, "drm-driver:\t%s\n", dev->driver->name);
973
drm_printf(&p, "drm-client-id:\t%llu\n", file->client_id);
@@ -983,6 +987,8 @@ void drm_show_fdinfo(struct seq_file *m, struct file *f)
983
987
984
988
if (dev->driver->show_fdinfo)
985
989
dev->driver->show_fdinfo(&p, file);
990
991
+ drm_dev_exit(idx);
986
992
}
993
EXPORT_SYMBOL(drm_show_fdinfo);
994
0 commit comments