Module Name: src
Committed By: martin
Date: Thu Jul 8 11:23:29 UTC 2021
Modified Files:
src/sys/external/bsd/drm2/linux [netbsd-9]: linux_reservation.c
Log Message:
Pull up following revision(s) (requested by riastradh in ticket #1320):
sys/external/bsd/drm2/linux/linux_reservation.c: revision 1.12
drm: Release fence after use.
May plug the dreaded radeon kmem memory leak.
XXX pullup-9
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.11.8.1 \
src/sys/external/bsd/drm2/linux/linux_reservation.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_reservation.c
diff -u src/sys/external/bsd/drm2/linux/linux_reservation.c:1.11 src/sys/external/bsd/drm2/linux/linux_reservation.c:1.11.8.1
--- src/sys/external/bsd/drm2/linux/linux_reservation.c:1.11 Mon Sep 3 18:02:11 2018
+++ src/sys/external/bsd/drm2/linux/linux_reservation.c Thu Jul 8 11:23:28 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_reservation.c,v 1.11 2018/09/03 18:02:11 riastradh Exp $ */
+/* $NetBSD: linux_reservation.c,v 1.11.8.1 2021/07/08 11:23:28 martin Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_reservation.c,v 1.11 2018/09/03 18:02:11 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_reservation.c,v 1.11.8.1 2021/07/08 11:23:28 martin Exp $");
#include <sys/param.h>
#include <sys/poll.h>
@@ -796,6 +796,7 @@ wait:
ret = fence_wait_timeout(fence, intr, timeout);
if (ret <= 0)
return ret;
+ fence_put(fence);
KASSERT(ret <= timeout);
timeout = ret;
goto top;