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/dist/drm drm: Make sure to destroy wai...



details:   https://anonhg.NetBSD.org/src/rev/d342a2c0344d
branches:  trunk
changeset: 1028571:d342a2c0344d
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 11:21:03 2021 +0000

description:
drm: Make sure to destroy waitqueue when done.

diffstat:

 sys/external/bsd/drm2/dist/drm/drm_file.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r ba9cd4d8d89c -r d342a2c0344d sys/external/bsd/drm2/dist/drm/drm_file.c
--- a/sys/external/bsd/drm2/dist/drm/drm_file.c Sun Dec 19 11:20:56 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_file.c Sun Dec 19 11:21:03 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_file.c,v 1.4 2021/12/19 11:09:34 riastradh Exp $   */
+/*     $NetBSD: drm_file.c,v 1.5 2021/12/19 11:21:03 riastradh Exp $   */
 
 /*
  * \author Rickard E. (Rik) Faith <faith%valinux.com@localhost>
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_file.c,v 1.4 2021/12/19 11:09:34 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_file.c,v 1.5 2021/12/19 11:21:03 riastradh Exp $");
 
 #include <linux/anon_inodes.h>
 #include <linux/dma-fence.h>
@@ -301,6 +301,7 @@
 
 #ifdef __NetBSD__
        DRM_DESTROY_WAITQUEUE(&file->event_wait);
+       DRM_DESTROY_WAITQUEUE(&file->event_read_wq);
        seldestroy(&file->event_selq);
 #else
        put_pid(file->pid);



Home | Main Index | Thread Index | Old Index