Skip to content

Commit 948652a

Browse files
jori-nordiccvinayak
authored andcommitted
Bluetooth: host: Use correct user_data size for hci_rx_pool
`struct acl_data` is used even when Host flow control is not enabled. It is written to through the `acl(buf)` accessor in `conn.c:hci_acl()`. Hopefully no netbufs were harmed by that :/ Signed-off-by: Jonathan Rico <[email protected]> (cherry picked from commit 792ae68) Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent f8ac289 commit 948652a

File tree

1 file changed

+1
-1
lines changed
  • subsys/bluetooth/host

1 file changed

+1
-1
lines changed

subsys/bluetooth/host/buf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ NET_BUF_POOL_FIXED_DEFINE(evt_pool, CONFIG_BT_BUF_EVT_RX_COUNT,
5555
NULL);
5656
#else
5757
NET_BUF_POOL_FIXED_DEFINE(hci_rx_pool, BT_BUF_RX_COUNT,
58-
BT_BUF_RX_SIZE, sizeof(struct bt_buf_data),
58+
BT_BUF_RX_SIZE, sizeof(struct acl_data),
5959
NULL);
6060
#endif /* CONFIG_BT_HCI_ACL_FLOW_CONTROL */
6161

0 commit comments

Comments
 (0)