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: Paranoia: null out fence if...



details:   https://anonhg.NetBSD.org/src/rev/8f550aa8470e
branches:  trunk
changeset: 1028829:8f550aa8470e
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 12:09:35 2021 +0000

description:
drm: Paranoia: null out fence if unreferenceable.

diffstat:

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

diffs (27 lines):

diff -r 1cd1801dbbbc -r 8f550aa8470e sys/external/bsd/drm2/linux/linux_dma_resv.c
--- a/sys/external/bsd/drm2/linux/linux_dma_resv.c      Sun Dec 19 12:09:27 2021 +0000
+++ b/sys/external/bsd/drm2/linux/linux_dma_resv.c      Sun Dec 19 12:09:35 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_dma_resv.c,v 1.7 2021/12/19 11:54:39 riastradh Exp $     */
+/*     $NetBSD: linux_dma_resv.c,v 1.8 2021/12/19 12:09:35 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.7 2021/12/19 11:54:39 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_dma_resv.c,v 1.8 2021/12/19 12:09:35 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/poll.h>
@@ -708,7 +708,7 @@
         * one.  If we can't, start over.
         */
        if (fence) {
-               if (dma_fence_get_rcu(fence) == NULL)
+               if ((fence = dma_fence_get_rcu(fence)) == NULL)
                        goto restart;
        }
 



Home | Main Index | Thread Index | Old Index