]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix error returns for Read Local OOB Extended Data commands
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 28 Mar 2015 22:18:59 +0000 (15:18 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Sun, 29 Mar 2015 04:57:02 +0000 (07:57 +0300)
commit4e80142129b76e9222ea44668848591121ac33c9
treecd39fcfc4c0a97434e2b680bbdc09b89ee9b4a68
parent765c6103304364efe97ada58ea36be9380219d32
Bluetooth: Fix error returns for Read Local OOB Extended Data commands

The Read Local OOB Extended Data commands are required to return the
address type and the data length at least. However currently the error
returns only the address type.

To fix this and avoid any extra allocations or stack memory, rearrange
the code so that the same path can be used for error returns.

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