Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/drm Add open drm files to the...
details: https://anonhg.NetBSD.org/src/rev/502c1ec007d3
branches: riastradh-drm2
changeset: 788591:502c1ec007d3
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jan 15 13:52:39 2014 +0000
description:
Add open drm files to the device file list.
diffstat:
sys/external/bsd/drm2/drm/drm_fops.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 70ba10ad30db -r 502c1ec007d3 sys/external/bsd/drm2/drm/drm_fops.c
--- a/sys/external/bsd/drm2/drm/drm_fops.c Wed Jan 15 13:52:30 2014 +0000
+++ b/sys/external/bsd/drm2/drm/drm_fops.c Wed Jan 15 13:52:39 2014 +0000
@@ -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 @@
if (error)
goto fail2;
+ mutex_lock(&dev->struct_mutex);
+ list_add(&file->lhead, &dev->filelist);
+ mutex_unlock(&dev->struct_mutex);
+
/* Success! */
return 0;
Home |
Main Index |
Thread Index |
Old Index