Skip to contentSkip to conversation

double unlock in bt_rfkill_poll()

DISCUSSION Dan Carpenter 1 participant 1 message Jul 19, 2009 ACPI

lore
Share & tools
lore
#0 lore raw

Hello,

My source checker tool (http://repo.or.cz/w/smatch.git) found an issue in bt_rfkill_poll(). I don't know the correct way to fix this.

We unlock on line 337 and again on line 342.

drivers/platform/x86/toshiba_acpi.c
334 hci_result = hci_get_radio_state(&value);
335 if (hci_result != HCI_SUCCESS) {
336 /* Can't do anything useful */
337 mutex_unlock(&dev->mutex);
338 }
339
340 new_rfk_state = value;
341
342 mutex_unlock(&dev->mutex);

regards,
dan carpenter