projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7aa1e7d
)
Bluetooth: Keep MGMT pending queue ordered FIFO
author
Brian Gix
<brian.gix@intel.com>
Thu, 31 Mar 2022 18:07:47 +0000
(11:07 -0700)
committer
Marcel Holtmann
<marcel@holtmann.org>
Fri, 13 May 2022 11:05:48 +0000
(13:05 +0200)
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>
net/bluetooth/mgmt_util.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/mgmt_util.c
b/net/bluetooth/mgmt_util.c
index 37eef2ce55aec45e7c097cc81a4a9e80f4925fd6..b69cfed62088ded11384ede77b4a6d258e2f70b4 100644
(file)
--- 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;
}