double unlock in bt_rfkill_poll()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux