aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/hci_bcsp.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@googlemail.com>2012-01-07 09:19:39 -0500
committerJohan Hedberg <johan.hedberg@intel.com>2012-02-13 10:01:22 -0500
commitc063af346d89be16e38385e55e5630070d6fd512 (patch)
tree4e825999a93fb744232339d400ab349c657cf72d /drivers/bluetooth/hci_bcsp.c
parentfdcd1661a6b22e3ac429759627d2b4d68f77d64a (diff)
Bluetooth: hci-uart-bcsp: 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>
Diffstat (limited to 'drivers/bluetooth/hci_bcsp.c')
-rw-r--r--drivers/bluetooth/hci_bcsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bluetooth/hci_bcsp.c b/drivers/bluetooth/hci_bcsp.c
index 9c5b2dc38e29..8bf0c3e774e8 100644
--- a/drivers/bluetooth/hci_bcsp.c
+++ b/drivers/bluetooth/hci_bcsp.c
@@ -692,7 +692,7 @@ static int bcsp_open(struct hci_uart *hu)
692 692
693 BT_DBG("hu %p", hu); 693 BT_DBG("hu %p", hu);
694 694
695 bcsp = kzalloc(sizeof(*bcsp), GFP_ATOMIC); 695 bcsp = kzalloc(sizeof(*bcsp), GFP_KERNEL);
696 if (!bcsp) 696 if (!bcsp)
697 return -ENOMEM; 697 return -ENOMEM;
698 698