Re: [PATCH] Bluetooth: Fix passkey endianess in user_confirm and notify_passkey

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

 



Hi Johan,

> The passkey_notify and user_confirm functions in mgmt.c were expecting
> different endianess for the passkey, leading to a big endian bug and
> sparse warning in recently added SMP code. This patch converts both
> functions to expect host endianess and do the conversion to little
> endian only when assigning to the mgmt event struct.
> 
> Signed-off-by: Johan Hedberg <johan.hedberg@xxxxxxxxx>
> ---
> include/net/bluetooth/hci_core.h | 2 +-
> net/bluetooth/hci_event.c        | 4 ++--
> net/bluetooth/mgmt.c             | 4 ++--
> net/bluetooth/smp.c              | 2 +-
> 4 files changed, 6 insertions(+), 6 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