svn commit: r209187 - head/sys/geom/gate

Pawel Jakub Dawidek pjd at FreeBSD.org
Mon Jun 14 21:58:56 UTC 2010


Author: pjd
Date: Mon Jun 14 21:58:55 2010
New Revision: 209187
URL: http://svn.freebsd.org/changeset/base/209187

Log:
  'unit' can be negative, so use signed type for it.
  
  Found by:	Coverity Prevent
  CID:		3731
  MFC after:	3 days

Modified:
  head/sys/geom/gate/g_gate.c

Modified: head/sys/geom/gate/g_gate.c
==============================================================================
--- head/sys/geom/gate/g_gate.c	Mon Jun 14 21:56:24 2010	(r209186)
+++ head/sys/geom/gate/g_gate.c	Mon Jun 14 21:58:55 2010	(r209187)
@@ -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;
 


More information about the svn-src-all mailing list