Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/drm Make sure all of struct drm_file g...



details:   https://anonhg.NetBSD.org/src/rev/55f318e1801c
branches:  trunk
changeset: 992973:55f318e1801c
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 14:20:11 2018 +0000

description:
Make sure all of struct drm_file gets initialized.

diffstat:

 sys/external/bsd/drm2/drm/drm_fops.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (40 lines):

diff -r da65b209acfd -r 55f318e1801c sys/external/bsd/drm2/drm/drm_fops.c
--- a/sys/external/bsd/drm2/drm/drm_fops.c      Mon Aug 27 14:19:59 2018 +0000
+++ b/sys/external/bsd/drm2/drm/drm_fops.c      Mon Aug 27 14:20:11 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_fops.c,v 1.12 2018/08/27 14:15:24 riastradh Exp $  */
+/*     $NetBSD: drm_fops.c,v 1.13 2018/08/27 14:20:11 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.12 2018/08/27 14:15:24 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_fops.c,v 1.13 2018/08/27 14:20:11 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/select.h>
@@ -56,6 +56,8 @@
        file->is_master = false;
        file->stereo_allowed = false;
        file->universal_planes = false;
+       file->atomic = false;
+       file->allowed_master = false;
        file->magic = 0;
        INIT_LIST_HEAD(&file->lhead);
        file->minor = minor;
@@ -67,10 +69,12 @@
        file->master = NULL;
        INIT_LIST_HEAD(&file->fbs);
        linux_mutex_init(&file->fbs_lock);
+       INIT_LIST_HEAD(&file->blobs);
        DRM_INIT_WAITQUEUE(&file->event_wait, "drmevent");
        selinit(&file->event_selq);
        INIT_LIST_HEAD(&file->event_list);
        file->event_space = 0x1000; /* XXX cargo-culted from Linux */
+       /* file->prime is initialized by drm_prime_init_file_private.  */
 
        if (drm_core_check_feature(dev, DRIVER_GEM))
                drm_gem_open(dev, file);



Home | Main Index | Thread Index | Old Index