Be sure to always unlock the sx lock when exiting the sysctl function.

MFC after:	3 days
This commit is contained in:
Nate Lawson 2004-08-24 17:53:25 +00:00
parent 89641ab32a
commit 9f65aa0340
2 changed files with 2 additions and 2 deletions

View File

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

View File

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