summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drm_framebuffer.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2021-07-30 04:04:26 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2021-07-30 04:04:26 +0000
commit811ddd28aaa7d268a8851ecb5eb55178ac7303ff (patch)
treef40b99aa7327d804d46acbd0bf7d801b86a4454f /sys/dev/pci/drm/drm_framebuffer.c
parenteaa7faaaa6c4a590a9ed824cfee77db959554f3f (diff)
set the name of the allocating process in struct drm_framebuffer
Diffstat (limited to 'sys/dev/pci/drm/drm_framebuffer.c')
-rw-r--r--sys/dev/pci/drm/drm_framebuffer.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/drm_framebuffer.c b/sys/dev/pci/drm/drm_framebuffer.c
index 239bf76b699..a6ae8b3626f 100644
--- a/sys/dev/pci/drm/drm_framebuffer.c
+++ b/sys/dev/pci/drm/drm_framebuffer.c
@@ -852,8 +852,10 @@ int drm_framebuffer_init(struct drm_device *dev, struct drm_framebuffer *fb,
INIT_LIST_HEAD(&fb->filp_head);
fb->funcs = funcs;
-#ifdef notyet
- strlcpy(fb->comm, current->comm, sizeof(fb->comm));
+#ifdef __linux__
+ strcpy(fb->comm, current->comm);
+#else
+ strlcpy(fb->comm, curproc->p_p->ps_comm, sizeof(fb->comm));
#endif
ret = __drm_mode_object_add(dev, &fb->base, DRM_MODE_OBJECT_FB,