mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 12:28:58 +00:00
Return EOPNOTSUPP for unknown module events.
PR: kern/18473 Submitted by: "Jeroen C. van Gelderen" <gelderen@systemics.com>
This commit is contained in:
parent
101acc33fa
commit
55a13f7dd0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=86479
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user