Commit 31396dd5 authored by Brian Gix's avatar Brian Gix Committed by Marcel Holtmann
Browse files

Bluetooth: Keep MGMT pending queue ordered FIFO



Small change to add new commands to tail of the list, and find/remove them
from the head of the list.

Signed-off-by: default avatarBrian Gix <brian.gix@intel.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 7aa1e7d1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -297,7 +297,7 @@ struct mgmt_pending_cmd *mgmt_pending_add(struct sock *sk, u16 opcode,
	if (!cmd)
		return NULL;

	list_add(&cmd->list, &hdev->mgmt_pending);
	list_add_tail(&cmd->list, &hdev->mgmt_pending);

	return cmd;
}