提交 31396dd5 编写于 作者: B Brian Gix 提交者: Marcel Holtmann

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: NBrian Gix <brian.gix@intel.com>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 7aa1e7d1
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册