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/linux drm: Plug fence leak



details:   https://anonhg.NetBSD.org/src/rev/c973b08f499c
branches:  trunk
changeset: 1028730:c973b08f499c
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 11:52:55 2021 +0000

description:
drm: Plug fence leak

diffstat:

 sys/external/bsd/drm2/linux/linux_dma_resv.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 423c26cafe89 -r c973b08f499c sys/external/bsd/drm2/linux/linux_dma_resv.c
--- a/sys/external/bsd/drm2/linux/linux_dma_resv.c      Sun Dec 19 11:52:47 2021 +0000
+++ b/sys/external/bsd/drm2/linux/linux_dma_resv.c      Sun Dec 19 11:52:55 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_dma_resv.c,v 1.4 2021/12/19 10:38:14 riastradh Exp $     */
+/*     $NetBSD: linux_dma_resv.c,v 1.5 2021/12/19 11:52:55 riastradh Exp $     */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_dma_resv.c,v 1.4 2021/12/19 10:38:14 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_dma_resv.c,v 1.5 2021/12/19 11:52:55 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/poll.h>
@@ -1093,8 +1093,9 @@
 
 wait:
        /*
-        * Exit the RCU read section and wait for it.  If we time out
-        * or fail, bail.  Otherwise, go back to the top.
+        * Exit the RCU read section, wait for it, and release the
+        * fence when we're done.  If we time out or fail, bail.
+        * Otherwise, go back to the top.
         */
        KASSERT(fence != NULL);
        rcu_read_unlock();



Home | Main Index | Thread Index | Old Index