diff options
author | phk <phk@FreeBSD.org> | 2004-08-08 07:30:47 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-08-08 07:30:47 +0000 |
commit | 2568a59fae988554a291690cdeb929f38c3dabd9 (patch) | |
tree | 73e8e3a7cbf8329895f91b2151cc5a237e2086a2 /sys/geom/geom_subr.c | |
parent | f46ce8d8955549aaf0993843e2eafbdc20c43467 (diff) | |
download | FreeBSD-src-2568a59fae988554a291690cdeb929f38c3dabd9.zip FreeBSD-src-2568a59fae988554a291690cdeb929f38c3dabd9.tar.gz |
OOps, that check was a bit premature. Allow zero versions as well.
Diffstat (limited to 'sys/geom/geom_subr.c')
-rw-r--r-- | sys/geom/geom_subr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_subr.c b/sys/geom/geom_subr.c index c7058ea..1631d7b 100644 --- a/sys/geom/geom_subr.c +++ b/sys/geom/geom_subr.c @@ -180,7 +180,7 @@ g_modevent(module_t mod, int type, void *data) struct g_class *mp; mp = data; - if (mp->version != G_VERSION) { + if (mp->version != 0 && mp->version != G_VERSION) { printf("GEOM class %s has Wrong version %x\n", mp->name, mp->version); return (EINVAL); |