Bluetooth: mgmt: Fix clearing of hdev->eir
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 22 Feb 2012 13:38:48 +0000 (15:38 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 23 Feb 2012 11:06:59 +0000 (13:06 +0200)
commitc80da27e868f6ffbe1c6588937aa4e7aeab21dec
tree0ce0ee1b706f4b58c91431bc63bf5d82c9ff6a7e
parent5fc6ebb102fdf6f589242ebfe3a07d112d60c7d5
Bluetooth: mgmt: Fix clearing of hdev->eir

The hdev->eir buffer needs to be cleared when clearing the EIR data.
Otherwise subsequent attempts at setting the EIR to something valid
again may fail because the code thinks that the EIR hasn't changed.

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