According to module(9), when command is unrecognized, the module should
return EOPNOTSUPP.
This commit is contained in:
parent
dcbd0fe5aa
commit
74bf4e164b
@ -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 New Issue
Block a user