summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2013-03-14 23:07:01 +0000
committerpjd <pjd@FreeBSD.org>2013-03-14 23:07:01 +0000
commit2e500238ddb670ec730cc2561f406d256e2a2aa9 (patch)
treef5063ce294533b8596cde91a06bfd82957b1c0da /sys/geom
parent5f4ba049f3af4ababfbb5158ca530215cb0eae0c (diff)
downloadFreeBSD-src-2e500238ddb670ec730cc2561f406d256e2a2aa9.zip
FreeBSD-src-2e500238ddb670ec730cc2561f406d256e2a2aa9.tar.gz
We don't need buffer to handle BIO_DELETE, so don't check buffer size for it.
This fixes handling BIO_DELETE larger than MAXPHYS.
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/gate/g_gate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/gate/g_gate.c b/sys/geom/gate/g_gate.c
index d1ddd40..c44993a 100644
--- a/sys/geom/gate/g_gate.c
+++ b/sys/geom/gate/g_gate.c
@@ -813,7 +813,7 @@ g_gate_ioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flags, struct threa
}
}
ggio->gctl_cmd = bp->bio_cmd;
- if ((bp->bio_cmd == BIO_DELETE || bp->bio_cmd == BIO_WRITE) &&
+ if (bp->bio_cmd == BIO_WRITE &&
bp->bio_length > ggio->gctl_length) {
mtx_unlock(&sc->sc_queue_mtx);
ggio->gctl_length = bp->bio_length;
OpenPOWER on IntegriCloud