kernel_optimize_test/drivers/bluetooth
David Herrmann 797fe796c4 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>
2012-02-13 17:01:24 +02:00
..
ath3k.c Merge branch 'driver-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core 2012-01-07 12:03:30 -08:00
bcm203x.c USB: convert drivers/bluetooth/* to use module_usb_driver() 2011-11-18 09:47:34 -08:00
bfusb.c Bluetooth: bfusb: Free driver_data on USB shutdown 2012-02-13 17:01:23 +02:00
bluecard_cs.c Bluetooth: bluecard-cs: Remove empty destruct cb 2012-02-13 17:01:22 +02:00
bpa10x.c Bluetooth: bpa10x: Free private driver data on usb shutdown 2012-02-13 17:01:24 +02:00
bt3c_cs.c Bluetooth: bt3c-cs: Remove empty destruct cb 2012-02-13 17:01:23 +02:00
btmrvl_debugfs.c Bluetooth: Do not ignore errors returned from strict_strtol() 2011-06-10 15:04:41 -03:00
btmrvl_drv.h Bluetooth: Use __packed annotation for drivers 2010-07-21 10:39:13 -07:00
btmrvl_main.c Bluetooth: btmrvl: Remove empty destruct cb 2012-02-13 17:01:23 +02:00
btmrvl_sdio.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless into for-davem 2011-12-09 14:07:12 -05:00
btmrvl_sdio.h Bluetooth: btmrvl: support Marvell Bluetooth device SD8787 2011-04-13 12:20:05 -03:00
btsdio.c Bluetooth: btsdio: Free driver data on SDIO shutdown 2012-02-13 17:01:24 +02:00
btuart_cs.c Bluetooth: btuart-cs: Remove empty destruct cb 2012-02-13 17:01:23 +02:00
btusb.c Bluetooth: btusb: Free driver data on USB shutdown 2012-02-13 17:01:23 +02:00
btwilink.c Bluetooth: btwilink: Remove empty destruct cb 2012-02-13 17:01:23 +02:00
dtl1_cs.c Bluetooth: dtl1-cs: Remove empty destruct cb 2012-02-13 17:01:23 +02:00
hci_ath.c Bluetooth: hci-uart-ath: Use GFP_ATOMIC in open() 2012-02-13 17:01:22 +02:00
hci_bcsp.c Bluetooth: hci-uart-bcsp: Use GFP_ATOMIC in open() 2012-02-13 17:01:22 +02:00
hci_h4.c Bluetooth: hci-uart-h4: Use GFP_ATOMIC in open() 2012-02-13 17:01:22 +02:00
hci_ldisc.c Bluetooth: uart-ldisc: Fix memory leak and remove destruct cb 2012-02-13 17:01:24 +02:00
hci_ll.c Bluetooth: hci-uart-ll: Use GFP_ATOMIC in open() 2012-02-13 17:01:22 +02:00
hci_uart.h Bluetooth: Support for Atheros AR300x serial chip 2010-07-21 10:39:14 -07:00
hci_vhci.c Bluetooth: vhci: Free driver_data on file release 2012-02-13 17:01:23 +02:00
Kconfig Bluetooth: btmrvl: support Marvell Bluetooth device SD8797 2011-11-21 13:52:31 -02:00
Makefile Bluetooth: btwilink driver 2011-02-23 14:39:10 -08:00