Module Name: src Committed By: riastradh Date: Sun Dec 19 11:52:55 UTC 2021
Modified Files: src/sys/external/bsd/drm2/linux: linux_dma_resv.c Log Message: drm: Plug fence leak To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/external/bsd/drm2/linux/linux_dma_resv.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/linux/linux_dma_resv.c diff -u src/sys/external/bsd/drm2/linux/linux_dma_resv.c:1.4 src/sys/external/bsd/drm2/linux/linux_dma_resv.c:1.5 --- src/sys/external/bsd/drm2/linux/linux_dma_resv.c:1.4 Sun Dec 19 10:38:14 2021 +++ src/sys/external/bsd/drm2/linux/linux_dma_resv.c Sun Dec 19 11:52:55 2021 @@ -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 @@ restart: 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();