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
25cd12c1b2
commit
d5575b642e
@ -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