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:
John Baldwin 2008-12-03 18:45:38 +00:00
parent 64c8fef580
commit 3cdf485f87

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;