Re: [PATCH] Bluetooth: A2MP: Do not reference hci_conn

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andrei,

* Andrei Emeltchenko <Andrei.Emeltchenko.news@xxxxxxxxx> [2012-05-31 11:01:37 +0300]:

> From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx>
> 
> Make A2MP channel special channel which do not reference hci_conn.
> This prevents from keeping ACL connection open when all L2CAP
> channels got closed.
> 
> hci_conn_hold and hci_conn_put are not reference counts on the
> hci_conn structure in the typical way.  They are reference counts for
> the ACL.  When you do the last hci_conn_put, the ACL is disconnected
> after a timeout.
> 
> Reported-by: Mat Martineau <mathewm@xxxxxxxxxxxxxx>
> Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx>
> ---
>  net/bluetooth/a2mp.c       |    2 --
>  net/bluetooth/l2cap_core.c |    4 +++-
>  2 files changed, 3 insertions(+), 3 deletions(-)

Patch has been applied to bluetooth-next, thanks.

	Gustavo
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux