Commit fdcd1661a6b22e3ac429759627d2b4d68f77d64a

Authored by David Herrmann
Committed by Johan Hedberg
1 parent 9eb648c39a

Bluetooth: hci-uart-h4: Use GFP_ATOMIC in open()

The uart_proto open() callback is not called in atomic context so we can safely
sleep here. The caller hci_uart_set_proto() in hci_ldisc.c is an ioctl-handler
and therefore can sleep.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/bluetooth/hci_h4.c
... ... @@ -69,7 +69,7 @@
69 69  
70 70 BT_DBG("hu %p", hu);
71 71  
72   - h4 = kzalloc(sizeof(*h4), GFP_ATOMIC);
  72 + h4 = kzalloc(sizeof(*h4), GFP_KERNEL);
73 73 if (!h4)
74 74 return -ENOMEM;
75 75