]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Bluetooth: Fix broken usage of get_unaligned_le16
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 13 Mar 2012 03:31:08 +0000 (20:31 -0700)
committerGustavo Padovan <gustavo@padovan.org>
Wed, 28 Mar 2012 14:39:09 +0000 (11:39 -0300)
commit4689ca13b4ce97ef7d29e6ecaec2fbf05f753258
treea518ac35da429da8d439bee5c96ae7e2af3f7872
parent61a86c36bd1e3d8943da6b515d152bc13ffc1e85
Bluetooth: Fix broken usage of get_unaligned_le16

In case the struct is already __packed, there is no need to use unaligned
access to the data. So just use __le16_to_cpu in these cases.

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