diff options
author | phk <phk@FreeBSD.org> | 2002-04-23 11:48:45 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-04-23 11:48:45 +0000 |
commit | 90094c67a16d89b3653201488f9e98ee89d6623a (patch) | |
tree | 754de5091c1790b87d24d309621fe77cb2ad731e /sys/geom/geom_slice.c | |
parent | ba95eb1f7bc0c8e89dee499da75356dc54782d32 (diff) | |
download | FreeBSD-src-90094c67a16d89b3653201488f9e98ee89d6623a.zip FreeBSD-src-90094c67a16d89b3653201488f9e98ee89d6623a.tar.gz |
Introduce some serious paranoia to try to catch a memory overwrite problem
as early as possible.
Sponsored by: DARPA & NAI Labs
Diffstat (limited to 'sys/geom/geom_slice.c')
-rw-r--r-- | sys/geom/geom_slice.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/geom/geom_slice.c b/sys/geom/geom_slice.c index 513ed26..4b1dc9b 100644 --- a/sys/geom/geom_slice.c +++ b/sys/geom/geom_slice.c @@ -173,6 +173,7 @@ g_slice_start(struct bio *bp) g_haveattr_off_t(bp, "GEOM::frontstuff", t); return; } +#ifdef _KERNEL if (!strcmp("GEOM::kerneldump", bp->bio_attribute)) { struct g_kerneldump *gkd; @@ -182,6 +183,7 @@ g_slice_start(struct bio *bp) gkd->length = gsp->slices[index].length; /* now, pass it on downwards... */ } +#endif bp2 = g_clone_bio(bp); bp2->bio_done = g_std_done; g_io_request(bp2, cp); |