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/drm plug memory leak in drm_vma_node_r...
details: https://anonhg.NetBSD.org/src/rev/bdbd0321c898
branches: trunk
changeset: 338965:bdbd0321c898
user: chs <chs%NetBSD.org@localhost>
date: Fri Jun 19 22:51:57 2015 +0000
description:
plug memory leak in drm_vma_node_revoke().
diffstat:
sys/external/bsd/drm2/drm/drm_vma_manager.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 52a357fd698f -r bdbd0321c898 sys/external/bsd/drm2/drm/drm_vma_manager.c
--- a/sys/external/bsd/drm2/drm/drm_vma_manager.c Fri Jun 19 18:17:49 2015 +0000
+++ b/sys/external/bsd/drm2/drm/drm_vma_manager.c Fri Jun 19 22:51:57 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_vma_manager.c,v 1.2 2015/03/02 17:34:23 riastradh Exp $ */
+/* $NetBSD: drm_vma_manager.c,v 1.3 2015/06/19 22:51:57 chs Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_vma_manager.c,v 1.2 2015/03/02 17:34:23 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_vma_manager.c,v 1.3 2015/06/19 22:51:57 chs Exp $");
#include <sys/kmem.h>
#include <sys/rbtree.h>
@@ -289,6 +289,8 @@
if (found != NULL)
rb_tree_remove_node(&node->von_files, found);
rw_exit(&node->von_lock);
+ if (found != NULL)
+ kmem_free(found, sizeof(*found));
}
bool
Home |
Main Index |
Thread Index |
Old Index