Re: [PATCH] Bluetooth: Simplify Link Key Notification event handling logic

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

 



Hi Johan,

> When we get a Link Key Notification HCI event we should already have a
> hci_conn object. This should have been created either in the Connection
> Request event handler, the hci_connect_acl() function or the
> hci_cs_create_conn() function (if the request was not sent by the
> kernel).
> 
> Since the only case that we'd end up not having a hci_conn in the Link
> Key Notification event handler would be essentially broken hardware it's
> safe to simply bail out from the function if this happens.
> 
> Signed-off-by: Johan Hedberg <johan.hedberg@xxxxxxxxx>
> ---
> net/bluetooth/hci_event.c | 25 ++++++++++++++-----------
> 1 file changed, 14 insertions(+), 11 deletions(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel

--
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