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/dist/drm/i915/gt i915: Destroy page di...



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

description:
i915: Destroy page directory lock on free.

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/gt/gen8_ppgtt.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r a9ec362b83ef -r 8cc246dbdffe sys/external/bsd/drm2/dist/drm/i915/gt/gen8_ppgtt.c
--- a/sys/external/bsd/drm2/dist/drm/i915/gt/gen8_ppgtt.c       Sun Dec 19 12:12:47 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/gt/gen8_ppgtt.c       Sun Dec 19 12:12:54 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gen8_ppgtt.c,v 1.8 2021/12/19 12:12:00 riastradh Exp $ */
+/*     $NetBSD: gen8_ppgtt.c,v 1.9 2021/12/19 12:12:54 riastradh Exp $ */
 
 // SPDX-License-Identifier: MIT
 /*
@@ -6,7 +6,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gen8_ppgtt.c,v 1.8 2021/12/19 12:12:00 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gen8_ppgtt.c,v 1.9 2021/12/19 12:12:54 riastradh Exp $");
 
 #include <linux/log2.h>
 
@@ -735,6 +735,7 @@
                return ERR_PTR(-ENOMEM);
 
        if (unlikely(setup_page_dma(vm, px_base(pd)))) {
+               spin_lock_destroy(&pd->lock);
                kfree(pd);
                return ERR_PTR(-ENOMEM);
        }



Home | Main Index | Thread Index | Old Index