Skip to content

Bluetooth: Reference counting and other fixes

[email protected] linux-bluetooth 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9Bluetooth: Fix incorrect LE CoC PDU length restriction based on HCI MTUnet/bluetooth/l2cap_core.c+1 -50 replies
2/9Bluetooth: Remove unnecessary l2cap_chan_unlock before l2cap_chan_addnet/bluetooth/l2cap_core.c+0 -20 replies
3/9Bluetooth: Fix hci_conn reference counting for fixed channelsinclude/net/bluetooth/l2cap.h net/bluetooth/l2cap_core.c net/bluetooth/l2cap_sock.c+19 -21 reply
4/9Bluetooth: Fix hci_conn reference counting for auto-connectionsinclude/net/bluetooth/hci_core.h net/bluetooth/hci_conn.c net/bluetooth/hci_core.c +1 more+37 -40 replies
5/9Bluetooth: Set addr_type only when it's needednet/bluetooth/hci_event.c+5 -50 replies
6/9Bluetooth: Optimize connection parameter lookup for LE connectionsnet/bluetooth/hci_event.c+2 -10 replies
7/9Bluetooth: Improve *_get() functions to return the object typeinclude/net/bluetooth/hci_core.h include/net/bluetooth/l2cap.h net/bluetooth/hidp/core.c +1 more+10 -110 replies
8/9Bluetooth: Fix using hci_conn_get() for hci_conn pointersnet/bluetooth/hci_conn.c net/bluetooth/hci_core.c net/bluetooth/hci_event.c +1 more+17 -61 reply
9/9Bluetooth: Refactor connection parameter freeing into its own functionnet/bluetooth/hci_core.c+15 -170 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] Bluetooth: Reference counting and other fixes

Hi,

Since we're not at the moment applying anything new to bluetooth-next (due to the merge window being still open) I'm sending all my pending patches in a single set to ease applying them in the correct order.

The two patches requiring some special consideration for 3.17 and stable kernel trees are the following two:

Bluetooth: Fix incorrect LE CoC PDU length restriction based on HCI MTU
Bluetooth: Fix hci_conn reference counting for auto-connections

Of those two the second one is a "must have" for 3.17 whereas the first one would be nice to get fixed for older kernels. All other patches in this set are fine to wait for 3.18.

Johan

----------------------------------------------------------------
Johan Hedberg (9):
Bluetooth: Fix incorrect LE CoC PDU length restriction based on HCI MTU
Bluetooth: Remove unnecessary l2cap_chan_unlock before l2cap_chan_add
Bluetooth: Fix hci_conn reference counting for fixed channels
Bluetooth: Fix hci_conn reference counting for auto-connections
Bluetooth: Set addr_type only when it's needed
Bluetooth: Optimize connection parameter lookup for LE connections
Bluetooth: Improve *_get() functions to return the object type
Bluetooth: Fix using hci_conn_get() for hci_conn pointers
Bluetooth: Refactor connection parameter freeing into its own function

 include/net/bluetooth/hci_core.h |  5 ++++-
 include/net/bluetooth/l2cap.h    |  3 ++-
 net/bluetooth/hci_conn.c         |  9 +++++++++
 net/bluetooth/hci_core.c         | 33 +++++++++++++++++++++++----------
 net/bluetooth/hci_event.c        | 31 +++++++++++++++++++++++--------
 net/bluetooth/hidp/core.c        | 10 ++++------
 net/bluetooth/l2cap_core.c       | 26 ++++++++++++++------------
 net/bluetooth/l2cap_sock.c       |  8 ++++++++
 net/bluetooth/mgmt.c             | 10 +++++++---
 9 files changed, 94 insertions(+), 41 deletions(-)