Module Name:    src
Committed By:   riastradh
Date:           Mon Aug 27 07:39:07 UTC 2018

Modified Files:
        src/sys/external/bsd/drm2/dist/drm/nouveau: nouveau_usif.c

Log Message:
curproc->p_pid, not current->pid.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
    src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_usif.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_usif.c
diff -u src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_usif.c:1.3 src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_usif.c:1.4
--- src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_usif.c:1.3	Mon Aug 27 07:35:56 2018
+++ src/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_usif.c	Mon Aug 27 07:39:07 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: nouveau_usif.c,v 1.3 2018/08/27 07:35:56 riastradh Exp $	*/
+/*	$NetBSD: nouveau_usif.c,v 1.4 2018/08/27 07:39:07 riastradh Exp $	*/
 
 /*
  * Copyright 2014 Red Hat Inc.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_usif.c,v 1.3 2018/08/27 07:35:56 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_usif.c,v 1.4 2018/08/27 07:39:07 riastradh Exp $");
 
 #include "nouveau_drm.h"
 #include "nouveau_usif.h"
@@ -215,7 +215,11 @@ usif_notify_get(struct drm_file *f, void
 		goto done;
 	ntfy->p->base.event = &ntfy->p->e.base;
 	ntfy->p->base.file_priv = f;
+#ifdef __NetBSD__
+	ntfy->p->base.pid = curproc->p_pid;
+#else
 	ntfy->p->base.pid = current->pid;
+#endif
 	ntfy->p->base.destroy =(void(*)(struct drm_pending_event *))kfree;
 	ntfy->p->e.base.type = DRM_NOUVEAU_EVENT_NVIF;
 	ntfy->p->e.base.length = sizeof(ntfy->p->e.base) + ntfy->reply;

Reply via email to