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/ttm Destroy lock before freeing
details: https://anonhg.NetBSD.org/src/rev/3311951bfd19
branches: trunk
changeset: 1028978:3311951bfd19
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 12:37:43 2021 +0000
description:
Destroy lock before freeing
Author: Maya Rashish <maya%NetBSD.org@localhost>
Committer: Taylor R Campbell <riastradh%NetBSD.org@localhost>
diffstat:
sys/external/bsd/drm2/dist/drm/ttm/ttm_bo_manager.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 87a588e46203 -r 3311951bfd19 sys/external/bsd/drm2/dist/drm/ttm/ttm_bo_manager.c
--- a/sys/external/bsd/drm2/dist/drm/ttm/ttm_bo_manager.c Sun Dec 19 12:37:36 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/ttm/ttm_bo_manager.c Sun Dec 19 12:37:43 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ttm_bo_manager.c,v 1.5 2021/12/18 23:45:44 riastradh Exp $ */
+/* $NetBSD: ttm_bo_manager.c,v 1.6 2021/12/19 12:37:43 riastradh Exp $ */
/* SPDX-License-Identifier: GPL-2.0 OR MIT */
/**************************************************************************
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ttm_bo_manager.c,v 1.5 2021/12/18 23:45:44 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ttm_bo_manager.c,v 1.6 2021/12/19 12:37:43 riastradh Exp $");
#include <drm/ttm/ttm_module.h>
#include <drm/ttm/ttm_bo_driver.h>
@@ -133,6 +133,7 @@
if (drm_mm_clean(mm)) {
drm_mm_takedown(mm);
spin_unlock(&rman->lock);
+ spin_lock_destroy(&rman->lock);
kfree(rman);
man->priv = NULL;
return 0;
Home |
Main Index |
Thread Index |
Old Index