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:
jhb 2008-12-03 18:45:38 +00:00
parent 25cd12c1b2
commit d5575b642e

View File

@ -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;