Module Name: src
Committed By: yamt
Date: Mon Oct 12 23:31:59 UTC 2009
Modified Files:
src/sys/kern: sys_aio.c
Log Message:
aio_suspend1: fix a double free bug.
To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/kern/sys_aio.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/sys_aio.c
diff -u src/sys/kern/sys_aio.c:1.24 src/sys/kern/sys_aio.c:1.25
--- src/sys/kern/sys_aio.c:1.24 Sun May 24 21:41:26 2009
+++ src/sys/kern/sys_aio.c Mon Oct 12 23:31:59 2009
@@ -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;
}
}