]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc70086d22fc8f1cfac15d54125650bdce3190a89
tree0ce0ee1b706f4b58c91431bc63bf5d82c9ff6a7e
parenteba8407af128560c35d26486a2712de61e9b6ab1
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