Home
last modified time | relevance | path

Searched hist:a24cce14 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/bluetooth/
H A Dl2cap_core.ca24cce14 Thu Aug 07 14:56:42 CDT 2014 Johan Hedberg <johan.hedberg@intel.com> Bluetooth: Fix reference counting of global L2CAP channels

When looking up entries from the global L2CAP channel list there needs
to be a guarantee that other code doesn't go and remove the entry after
a channel has been returned by the lookup function. This patch makes
sure that the channel reference is incremented before the read lock is
released in the global channel lookup functions. The patch also adds the
corresponding l2cap_chan_put() calls once the channels pointers are
no-longer needed.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>