diff options
author | iedowse <iedowse@FreeBSD.org> | 2001-11-17 00:46:08 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2001-11-17 00:46:08 +0000 |
commit | 554e3508b52de20472a8aa4614fdcd00cbc810c6 (patch) | |
tree | ffe3ae91fd50066705285dc7983bfa7e49e6905a /sys/geom | |
parent | 91366a7e73267c28525a654edda9a6579437454c (diff) | |
download | FreeBSD-src-554e3508b52de20472a8aa4614fdcd00cbc810c6.zip FreeBSD-src-554e3508b52de20472a8aa4614fdcd00cbc810c6.tar.gz |
Return EOPNOTSUPP for unknown module events.
PR: kern/18473
Submitted by: "Jeroen C. van Gelderen" <gelderen@systemics.com>
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/geom_ccd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/geom/geom_ccd.c b/sys/geom/geom_ccd.c index 090087b..dc9ea96 100644 --- a/sys/geom/geom_ccd.c +++ b/sys/geom/geom_ccd.c @@ -372,8 +372,11 @@ ccd_modevent(module_t mod, int type, void *data) error = EOPNOTSUPP; break; - default: /* MOD_SHUTDOWN etc */ + case MOD_SHUTDOWN: break; + + default: + error = EOPNOTSUPP; } return (error); } |