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 i915: Destroy vma->pages...
details: https://anonhg.NetBSD.org/src/rev/7216f65701b5
branches: trunk
changeset: 1028779:7216f65701b5
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 12:00:31 2021 +0000
description:
i915: Destroy vma->pages_mutex before free.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/i915_vma.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 77028308af27 -r 7216f65701b5 sys/external/bsd/drm2/dist/drm/i915/i915_vma.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_vma.c Sun Dec 19 12:00:24 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_vma.c Sun Dec 19 12:00:31 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i915_vma.c,v 1.8 2021/12/19 11:57:11 riastradh Exp $ */
+/* $NetBSD: i915_vma.c,v 1.9 2021/12/19 12:00:31 riastradh Exp $ */
/*
* Copyright © 2016 Intel Corporation
@@ -25,7 +25,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_vma.c,v 1.8 2021/12/19 11:57:11 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_vma.c,v 1.9 2021/12/19 12:00:31 riastradh Exp $");
#include <linux/sched/mm.h>
#include <drm/drm_gem.h>
@@ -57,6 +57,7 @@
void i915_vma_free(struct i915_vma *vma)
{
+ mutex_destroy(&vma->pages_mutex);
return kmem_cache_free(global.slab_vmas, vma);
}
Home |
Main Index |
Thread Index |
Old Index