From 3e019deaed5ad0687ea53ed5b5ba3336dc0be3c4 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Thu, 15 Jul 2004 08:26:07 +0000 Subject: Do a pass over all modules in the kernel and make them return EOPNOTSUPP for unknown events. A number of modules return EINVAL in this instance, and I have left those alone for now and instead taught MOD_QUIESCE to accept this as "didn't do anything". --- sys/dev/firewire/firewire.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/dev/firewire') diff --git a/sys/dev/firewire/firewire.c b/sys/dev/firewire/firewire.c index 6342a1867faf..9bd5dd66631a 100644 --- a/sys/dev/firewire/firewire.c +++ b/sys/dev/firewire/firewire.c @@ -2273,6 +2273,8 @@ fw_modevent(module_t mode, int type, void *data) break; case MOD_SHUTDOWN: break; + default: + return (EOPNOTSUPP); } return (err); } -- cgit v1.2.3