svn commit: r209262 - stable/8/sys/geom/gate
Pawel Jakub Dawidek
pjd at FreeBSD.org
Thu Jun 17 19:06:12 UTC 2010
Author: pjd
Date: Thu Jun 17 19:06:11 2010
New Revision: 209262
URL: http://svn.freebsd.org/changeset/base/209262
Log:
MFC r209186,r209187:
r209186:
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.
r209187:
'unit' can be negative, so use signed type for it.
Found by: Coverity Prevent
CID: 3731
Modified:
stable/8/sys/geom/gate/g_gate.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/dev/xen/xenpci/ (props changed)
stable/8/sys/geom/sched/ (props changed)
Modified: stable/8/sys/geom/gate/g_gate.c
==============================================================================
--- stable/8/sys/geom/gate/g_gate.c Thu Jun 17 17:41:42 2010 (r209261)
+++ stable/8/sys/geom/gate/g_gate.c Thu Jun 17 19:06:11 2010 (r209262)
@@ -210,7 +210,7 @@ g_gate_start(struct bio *bp)
}
static struct g_gate_softc *
-g_gate_hold(u_int unit, const char *name)
+g_gate_hold(int unit, const char *name)
{
struct g_gate_softc *sc = NULL;
@@ -572,8 +572,8 @@ g_gate_ioctl(struct cdev *dev, u_long cm
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);
More information about the svn-src-stable
mailing list