Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern aio_suspend1: fix a double free bug.
details: https://anonhg.NetBSD.org/src/rev/a049dc939425
branches: trunk
changeset: 748077:a049dc939425
user: yamt <yamt%NetBSD.org@localhost>
date: Mon Oct 12 23:31:59 2009 +0000
description:
aio_suspend1: fix a double free bug.
diffstat:
sys/kern/sys_aio.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diffs (28 lines):
diff -r 1e2e8eba8155 -r a049dc939425 sys/kern/sys_aio.c
--- a/sys/kern/sys_aio.c Mon Oct 12 22:32:23 2009 +0000
+++ b/sys/kern/sys_aio.c Mon Oct 12 23:31:59 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_aio.c,v 1.24 2009/05/24 21:41:26 ad Exp $ */
+/* $NetBSD: sys_aio.c,v 1.25 2009/10/12 23:31:59 yamt Exp $ */
/*
* Copyright (c) 2007, Mindaugas Rasiukevicius <rmind at NetBSD org>
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_aio.c,v 1.24 2009/05/24 21:41:26 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_aio.c,v 1.25 2009/10/12 23:31:59 yamt Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@@ -892,9 +892,6 @@
mutex_enter(&aio->aio_mtx);
continue;
}
-
- kmem_free(aiocbp_list,
- nent * sizeof(struct aio_job));
return error;
}
}
Home |
Main Index |
Thread Index |
Old Index