diff options
Diffstat (limited to 'drivers/acpi/acpica/utxface.c')
-rw-r--r-- | drivers/acpi/acpica/utxface.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/drivers/acpi/acpica/utxface.c b/drivers/acpi/acpica/utxface.c index 48efb446258c..6505774f223e 100644 --- a/drivers/acpi/acpica/utxface.c +++ b/drivers/acpi/acpica/utxface.c | |||
@@ -287,7 +287,10 @@ acpi_status acpi_install_interface(acpi_string interface_name) | |||
287 | return (AE_BAD_PARAMETER); | 287 | return (AE_BAD_PARAMETER); |
288 | } | 288 | } |
289 | 289 | ||
290 | (void)acpi_os_acquire_mutex(acpi_gbl_osi_mutex, ACPI_WAIT_FOREVER); | 290 | status = acpi_os_acquire_mutex(acpi_gbl_osi_mutex, ACPI_WAIT_FOREVER); |
291 | if (ACPI_FAILURE(status)) { | ||
292 | return (status); | ||
293 | } | ||
291 | 294 | ||
292 | /* Check if the interface name is already in the global list */ | 295 | /* Check if the interface name is already in the global list */ |
293 | 296 | ||
@@ -336,7 +339,10 @@ acpi_status acpi_remove_interface(acpi_string interface_name) | |||
336 | return (AE_BAD_PARAMETER); | 339 | return (AE_BAD_PARAMETER); |
337 | } | 340 | } |
338 | 341 | ||
339 | (void)acpi_os_acquire_mutex(acpi_gbl_osi_mutex, ACPI_WAIT_FOREVER); | 342 | status = acpi_os_acquire_mutex(acpi_gbl_osi_mutex, ACPI_WAIT_FOREVER); |
343 | if (ACPI_FAILURE(status)) { | ||
344 | return (status); | ||
345 | } | ||
340 | 346 | ||
341 | status = acpi_ut_remove_interface(interface_name); | 347 | status = acpi_ut_remove_interface(interface_name); |
342 | 348 | ||
@@ -362,9 +368,12 @@ ACPI_EXPORT_SYMBOL(acpi_remove_interface) | |||
362 | ****************************************************************************/ | 368 | ****************************************************************************/ |
363 | acpi_status acpi_install_interface_handler(acpi_interface_handler handler) | 369 | acpi_status acpi_install_interface_handler(acpi_interface_handler handler) |
364 | { | 370 | { |
365 | acpi_status status = AE_OK; | 371 | acpi_status status; |
366 | 372 | ||
367 | (void)acpi_os_acquire_mutex(acpi_gbl_osi_mutex, ACPI_WAIT_FOREVER); | 373 | status = acpi_os_acquire_mutex(acpi_gbl_osi_mutex, ACPI_WAIT_FOREVER); |
374 | if (ACPI_FAILURE(status)) { | ||
375 | return (status); | ||
376 | } | ||
368 | 377 | ||
369 | if (handler && acpi_gbl_interface_handler) { | 378 | if (handler && acpi_gbl_interface_handler) { |
370 | status = AE_ALREADY_EXISTS; | 379 | status = AE_ALREADY_EXISTS; |