Module Name: src
Committed By: riastradh
Date: Sun Dec 19 11:21:03 UTC 2021
Modified Files:
src/sys/external/bsd/drm2/dist/drm: drm_file.c
Log Message:
drm: Make sure to destroy waitqueue when done.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/external/bsd/drm2/dist/drm/drm_file.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/drm_file.c
diff -u src/sys/external/bsd/drm2/dist/drm/drm_file.c:1.4 src/sys/external/bsd/drm2/dist/drm/drm_file.c:1.5
--- src/sys/external/bsd/drm2/dist/drm/drm_file.c:1.4 Sun Dec 19 11:09:34 2021
+++ src/sys/external/bsd/drm2/dist/drm/drm_file.c Sun Dec 19 11:21:03 2021
@@ -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 <[email protected]>
@@ -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 @@ void drm_file_free(struct drm_file *file
#ifdef __NetBSD__
DRM_DESTROY_WAITQUEUE(&file->event_wait);
+ DRM_DESTROY_WAITQUEUE(&file->event_read_wq);
seldestroy(&file->event_selq);
#else
put_pid(file->pid);