mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
According to module(9), when command is unrecognized, the module should
return EOPNOTSUPP.
This commit is contained in:
parent
dcbd0fe5aa
commit
74bf4e164b
3 changed files with 3 additions and 3 deletions
|
|
@ -134,7 +134,7 @@ cdev_load(module_t mod, int cmd, void *arg)
|
|||
break; /* Success*/
|
||||
|
||||
default: /* we only understand load/unload*/
|
||||
err = EINVAL;
|
||||
err = EOPNOTSUPP;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -153,7 +153,7 @@ load (module_t mod, int cmd, void *arg)
|
|||
printf("Ok\n");
|
||||
break;
|
||||
default :
|
||||
error = EINVAL;
|
||||
error = EOPNOTSUPP;
|
||||
break;
|
||||
}
|
||||
return error;
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ load (struct module *module, int cmd, void *arg)
|
|||
printf ("syscall unloaded from %d\n", offset);
|
||||
break;
|
||||
default :
|
||||
error = EINVAL;
|
||||
error = EOPNOTSUPP;
|
||||
break;
|
||||
}
|
||||
return error;
|
||||
|
|
|
|||
Loading…
Reference in a new issue