Be sure to always unlock the sx lock when exiting the sysctl function.
MFC after: 3 days
This commit is contained in:
parent
89641ab32a
commit
9f65aa0340
@ -223,9 +223,9 @@ acpi_panasonic_sysctl(SYSCTL_HANDLER_ARGS)
|
||||
|
||||
/* Set the new value via the appropriate function. */
|
||||
error = handler(sc->handle, HKEY_SET, &arg);
|
||||
ACPI_SERIAL_END(panasonic);
|
||||
|
||||
out:
|
||||
ACPI_SERIAL_END(panasonic);
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
@ -223,9 +223,9 @@ acpi_panasonic_sysctl(SYSCTL_HANDLER_ARGS)
|
||||
|
||||
/* Set the new value via the appropriate function. */
|
||||
error = handler(sc->handle, HKEY_SET, &arg);
|
||||
ACPI_SERIAL_END(panasonic);
|
||||
|
||||
out:
|
||||
ACPI_SERIAL_END(panasonic);
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user