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)
commit57b0d3e8e7d570b693a1a253c637308130134a23
treecd39fcfc4c0a97434e2b680bbdc09b89ee9b4a68
parentefcd8c98e0d195c09fd9141a7af32dd83e62a5cb
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