summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Herrmann2012-01-07 15:47:19 +0100
committerJohan Hedberg2012-02-13 16:01:24 +0100
commit797fe796c4335b35d95d5326824513befdb5d1e9 (patch)
treec711b5d30e412dce8427e392c9379b6c03dce5fc /include
parentBluetooth: btsdio: Free driver data on SDIO shutdown (diff)
downloadkernel-qcow2-linux-797fe796c4335b35d95d5326824513befdb5d1e9.tar.gz
kernel-qcow2-linux-797fe796c4335b35d95d5326824513befdb5d1e9.tar.xz
kernel-qcow2-linux-797fe796c4335b35d95d5326824513befdb5d1e9.zip
Bluetooth: uart-ldisc: Fix memory leak and remove destruct cb
We currently leak the hci_uart object if HCI_UART_PROTO_SET is never set because the hci-destruct callback will then never be called. This fix removes the hci-destruct callback and frees the driver internal private hci_uart object directly on tty-close. We call hci_unregister_dev() here so the hci-core will never call our callbacks again (except destruct). Therefore, we can safely free the driver internal data right away and set the destruct callback to NULL. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions