diff options
author | pjd <pjd@FreeBSD.org> | 2010-06-14 21:56:24 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2010-06-14 21:56:24 +0000 |
commit | 9910a8f3bf49a3007af752ea526d685fe9941bc1 (patch) | |
tree | 3d7626e3c0fd54b0e742caabf61ca51dca047127 /sys/geom | |
parent | 30cb3140ef8bb72d244132e3c05ba28af5d0bc31 (diff) | |
download | FreeBSD-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.c | 2 |
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); |