double unlock in bt_rfkill_poll()
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