diff options
author | Brian Gix <brian.gix@intel.com> | 2022-03-31 11:07:47 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2022-05-13 13:05:48 +0200 |
commit | 31396dd53f32d5d82655d84ab31e193ace836688 (patch) | |
tree | 2f0711e0d86e0f619bc5025a78e243e4740a268f /net/bluetooth | |
parent | 7aa1e7d15f8a5b65f67bacb100d8fc033b21efa2 (diff) | |
download | linux-31396dd53f32d5d82655d84ab31e193ace836688.tar.gz linux-31396dd53f32d5d82655d84ab31e193ace836688.tar.bz2 linux-31396dd53f32d5d82655d84ab31e193ace836688.zip |
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: Brian Gix <brian.gix@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/mgmt_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt_util.c b/net/bluetooth/mgmt_util.c index 37eef2ce55ae..b69cfed62088 100644 --- a/net/bluetooth/mgmt_util.c +++ b/net/bluetooth/mgmt_util.c @@ -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; } |