Bluetooth: Fix memory leaks from discovery filter UUID list
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 5 Dec 2014 10:45:22 +0000 (11:45 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 5 Dec 2014 11:13:00 +0000 (13:13 +0200)
commit22078800c337cf374d58b63a5b1f670d470e6dbf
tree8dbcd74c8e7bdd094e44a39634e3d2891dd7954d
parent0256325ed666af8346c89deb9d437c2209f463cb
Bluetooth: Fix memory leaks from discovery filter UUID list

In case of failure or when unplugging a controller, the allocated
memory for the UUID list of the discovery filter is not freed. Use
the newly introduced helper for reset the discovery filter and with
that also freeing existing memory.

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