Newer versions of gcc have a bug where switch statements with only
a default: label cause a segmentation fault. So just return EINVAL from sysarch.
This commit is contained in:
parent
ea59f3f130
commit
7369c41ce5
@ -40,13 +40,5 @@ struct sysarch_args {
|
||||
int
|
||||
sysarch(struct thread *td, struct sysarch_args *uap)
|
||||
{
|
||||
int error;
|
||||
|
||||
error = 0;
|
||||
switch (uap->op) {
|
||||
default:
|
||||
error = EINVAL;
|
||||
break;
|
||||
}
|
||||
return (error);
|
||||
return (EINVAL);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user