From 9910a8f3bf49a3007af752ea526d685fe9941bc1 Mon Sep 17 00:00:00 2001 From: pjd Date: Mon, 14 Jun 2010 21:56:24 +0000 Subject: 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 --- sys/geom/gate/g_gate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/geom/gate') 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); -- cgit v1.1