When unloading a 32-bit system call module, restore the sysent vector in
the 32-bit system call table instead of the main system call table.
This commit is contained in:
parent
64c8fef580
commit
3cdf485f87
@ -2774,7 +2774,7 @@ syscall32_module_handler(struct module *mod, int what, void *arg)
|
||||
if (error)
|
||||
return (error);
|
||||
}
|
||||
error = syscall_deregister(data->offset, &data->old_sysent);
|
||||
error = syscall32_deregister(data->offset, &data->old_sysent);
|
||||
return (error);
|
||||
default:
|
||||
error = EOPNOTSUPP;
|
||||
|
Loading…
Reference in New Issue
Block a user