summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2010-06-14 21:56:24 +0000
committerpjd <pjd@FreeBSD.org>2010-06-14 21:56:24 +0000
commit9910a8f3bf49a3007af752ea526d685fe9941bc1 (patch)
tree3d7626e3c0fd54b0e742caabf61ca51dca047127 /sys/geom
parent30cb3140ef8bb72d244132e3c05ba28af5d0bc31 (diff)
downloadFreeBSD-src-9910a8f3bf49a3007af752ea526d685fe9941bc1.zip
FreeBSD-src-9910a8f3bf49a3007af752ea526d685fe9941bc1.tar.gz
BIO_DELETE contains range we want to delete and doesn't provide any useful
data, so there is no need to copy it to userland. MFC after: 3 days
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 dd69a87..31e9c80 100644
--- a/sys/geom/gate/g_gate.c
+++ b/sys/geom/gate/g_gate.c
@@ -572,8 +572,8 @@ g_gate_ioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flags, struct threa
switch (bp->bio_cmd) {
case BIO_READ:
- break;
case BIO_DELETE:
+ break;
case BIO_WRITE:
error = copyout(bp->bio_data, ggio->gctl_data,
bp->bio_length);
OpenPOWER on IntegriCloud