Commit a675d7f1 authored by Marcel Holtmann's avatar Marcel Holtmann Committed by Gustavo Padovan
Browse files

Bluetooth: Use GFP_KERNEL when cloning SKB in a workqueue



There is no need to use GFP_ATOMIC with skb_clone() when the code is
executed in a workqueue.

Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Acked-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
Signed-off-by: default avatarGustavo Padovan <gustavo.padovan@collabora.co.uk>
parent af750e94
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3547,7 +3547,7 @@ static void hci_cmd_work(struct work_struct *work)

		kfree_skb(hdev->sent_cmd);

		hdev->sent_cmd = skb_clone(skb, GFP_ATOMIC);
		hdev->sent_cmd = skb_clone(skb, GFP_KERNEL);
		if (hdev->sent_cmd) {
			atomic_dec(&hdev->cmd_cnt);
			hci_send_frame(skb);