]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/bluetooth/hci_serdev.c
Bluetooth: hci_serdev: Init hci_uart proto_lock to avoid oops
[mirror_ubuntu-bionic-kernel.git] / drivers / bluetooth / hci_serdev.c
index 71664b22ec9d71c04305cba182b52e6314c26011..e0e6461b9200c027f7a04d8e577738f3af967864 100644 (file)
@@ -303,6 +303,7 @@ int hci_uart_register_device(struct hci_uart *hu,
        hci_set_drvdata(hdev, hu);
 
        INIT_WORK(&hu->write_work, hci_uart_write_work);
+       percpu_init_rwsem(&hu->proto_lock);
 
        /* Only when vendor specific setup callback is provided, consider
         * the manufacturer information valid. This avoids filling in the