Commit 61a939c
Johan Hedberg
Bluetooth: Queue incoming ACL data until BT_CONNECTED state is reached
This patch adds a queue for incoming L2CAP data that's received before
l2cap_connect_cfm is called and processes the data once
l2cap_connect_cfm is called. This way we ensure that we have e.g. all
remote features before processing L2CAP signaling data (which is very
important for making the correct security decisions).
The processing of the pending rx data needs to be done through
queue_work since unlike l2cap_recv_acldata, l2cap_connect_cfm is called
with the hci_dev lock held which could cause potential deadlocks.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>1 parent 162b49e commit 61a939c
2 files changed
+30
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
624 | 624 | | |
625 | 625 | | |
626 | 626 | | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
627 | 630 | | |
628 | 631 | | |
629 | 632 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1550 | 1550 | | |
1551 | 1551 | | |
1552 | 1552 | | |
| 1553 | + | |
| 1554 | + | |
1553 | 1555 | | |
1554 | 1556 | | |
1555 | 1557 | | |
| |||
1675 | 1677 | | |
1676 | 1678 | | |
1677 | 1679 | | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
1678 | 1683 | | |
1679 | 1684 | | |
1680 | 1685 | | |
| |||
6880 | 6885 | | |
6881 | 6886 | | |
6882 | 6887 | | |
| 6888 | + | |
6883 | 6889 | | |
6884 | 6890 | | |
6885 | 6891 | | |
| 6892 | + | |
| 6893 | + | |
| 6894 | + | |
| 6895 | + | |
| 6896 | + | |
| 6897 | + | |
6886 | 6898 | | |
6887 | 6899 | | |
6888 | 6900 | | |
| |||
6928 | 6940 | | |
6929 | 6941 | | |
6930 | 6942 | | |
| 6943 | + | |
| 6944 | + | |
| 6945 | + | |
| 6946 | + | |
| 6947 | + | |
| 6948 | + | |
| 6949 | + | |
| 6950 | + | |
| 6951 | + | |
| 6952 | + | |
| 6953 | + | |
| 6954 | + | |
6931 | 6955 | | |
6932 | 6956 | | |
6933 | 6957 | | |
| |||
6983 | 7007 | | |
6984 | 7008 | | |
6985 | 7009 | | |
| 7010 | + | |
| 7011 | + | |
| 7012 | + | |
6986 | 7013 | | |
6987 | 7014 | | |
6988 | 7015 | | |
| |||
0 commit comments