Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/raidframe Resolve a use-after-free reference to the ...
details: https://anonhg.NetBSD.org/src/rev/f5be39e70003
branches: trunk
changeset: 342517:f5be39e70003
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Sat Dec 26 12:25:26 2015 +0000
description:
Resolve a use-after-free reference to the softc. From mlelstv@
diffstat:
sys/dev/raidframe/rf_netbsdkintf.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 758e8b7ae59d -r f5be39e70003 sys/dev/raidframe/rf_netbsdkintf.c
--- a/sys/dev/raidframe/rf_netbsdkintf.c Sat Dec 26 10:34:36 2015 +0000
+++ b/sys/dev/raidframe/rf_netbsdkintf.c Sat Dec 26 12:25:26 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_netbsdkintf.c,v 1.327 2015/12/26 00:58:45 pgoyette Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.328 2015/12/26 12:25:26 pgoyette Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2008-2011 The NetBSD Foundation, Inc.
@@ -101,7 +101,7 @@
***********************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.327 2015/12/26 00:58:45 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.328 2015/12/26 12:25:26 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -1038,10 +1038,9 @@
disk_destroy(&rs->sc_dkdev);
/* Free the softc */
+ aprint_normal_dev(rs->sc_dev, "detached\n");
raidput(rs);
- aprint_normal_dev(rs->sc_dev, "detached\n");
-
return 0;
}
Home |
Main Index |
Thread Index |
Old Index