ソースを参照

Bluetooth: Use GFP_KERNEL in hci_conn_add()

This function is called in process context only, so it should use
GFP_KERNEL to allocate memory.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Andre Guedes 13 年 前
コミット
cb601d7e65
1 ファイル変更1 行追加1 行削除
  1. 1 1
      net/bluetooth/hci_conn.c

+ 1 - 1
net/bluetooth/hci_conn.c

@@ -373,7 +373,7 @@ struct hci_conn *hci_conn_add(struct hci_dev *hdev, int type, bdaddr_t *dst)
 
 
 	BT_DBG("%s dst %s", hdev->name, batostr(dst));
 	BT_DBG("%s dst %s", hdev->name, batostr(dst));
 
 
-	conn = kzalloc(sizeof(struct hci_conn), GFP_ATOMIC);
+	conn = kzalloc(sizeof(struct hci_conn), GFP_KERNEL);
 	if (!conn)
 	if (!conn)
 		return NULL;
 		return NULL;