summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>1999-08-08 10:06:27 +0000
committerkato <kato@FreeBSD.org>1999-08-08 10:06:27 +0000
commitcbf9083c779a0e3361079193c89eca2eb5240e70 (patch)
treeae0a3ac206302ebeb0275e228c6352a44c582653
parentd2ad793019d30f63843ebbe01390e4581348fbe5 (diff)
downloadFreeBSD-src-cbf9083c779a0e3361079193c89eca2eb5240e70.zip
FreeBSD-src-cbf9083c779a0e3361079193c89eca2eb5240e70.tar.gz
Fix a panic caused by freeing unallocated structure.
Submitted by: Tomohiko Kurahashi <kura@tim.hi-ho.ne.jp>
-rw-r--r--sys/pc98/pc98/diskslice_machdep.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/pc98/pc98/diskslice_machdep.c b/sys/pc98/pc98/diskslice_machdep.c
index 7d59b99..0a263ab 100644
--- a/sys/pc98/pc98/diskslice_machdep.c
+++ b/sys/pc98/pc98/diskslice_machdep.c
@@ -35,7 +35,7 @@
*
* from: @(#)ufs_disksubr.c 7.16 (Berkeley) 5/4/91
* from: ufs_disksubr.c,v 1.8 1994/06/07 01:21:39 phk Exp $
- * $Id: diskslice_machdep.c,v 1.19 1999/05/12 08:33:22 kato Exp $
+ * $Id: diskslice_machdep.c,v 1.20 1999/06/26 02:47:15 mckusick Exp $
*/
/*
@@ -325,7 +325,6 @@ reread_mbr:
/* IBM-PC HDD */
bp->b_flags = B_INVAL | B_AGE;
brelse(bp);
- free(ssp, M_DEVBUF);
return atcompat_dsinit(dname, dev, strat, lp, sspp);
}
#endif
OpenPOWER on IntegriCloud