Module Name:    src
Committed By:   riastradh
Date:           Wed Jan 15 13:52:39 UTC 2014

Modified Files:
        src/sys/external/bsd/drm2/drm [riastradh-drm2]: drm_fops.c

Log Message:
Add open drm files to the device file list.


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.5 -r1.1.2.6 src/sys/external/bsd/drm2/drm/drm_fops.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/drm/drm_fops.c
diff -u src/sys/external/bsd/drm2/drm/drm_fops.c:1.1.2.5 src/sys/external/bsd/drm2/drm/drm_fops.c:1.1.2.6
--- src/sys/external/bsd/drm2/drm/drm_fops.c:1.1.2.5	Wed Jul 24 03:22:11 2013
+++ src/sys/external/bsd/drm2/drm/drm_fops.c	Wed Jan 15 13:52:39 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: drm_fops.c,v 1.1.2.5 2013/07/24 03:22:11 riastradh Exp $	*/
+/*	$NetBSD: drm_fops.c,v 1.1.2.6 2014/01/15 13:52:39 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_fops.c,v 1.1.2.5 2013/07/24 03:22:11 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_fops.c,v 1.1.2.6 2014/01/15 13:52:39 riastradh Exp $");
 
 #include <drm/drmP.h>
 
@@ -92,6 +92,10 @@ drm_open_file(struct drm_file *file, voi
 	if (error)
 		goto fail2;
 
+        mutex_lock(&dev->struct_mutex);
+        list_add(&file->lhead, &dev->filelist);
+        mutex_unlock(&dev->struct_mutex);
+
 	/* Success!  */
 	return 0;
 

Reply via email to