android_kernel_motorola_sm6375/drivers/bluetooth
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Anant Thazhemadam 18e1101b0e Bluetooth: hci_h5: close serdev device and free hu in h5_close
commit 70f259a3f4276b71db365b1d6ff1eab805ea6ec3 upstream.

When h5_close() gets called, the memory allocated for the hu gets
freed only if hu->serdev doesn't exist. This leads to a memory leak.
So when h5_close() is requested, close the serdev device instance and
free the memory allocated to the hu entirely instead.

Fixes: https://syzkaller.appspot.com/bug?extid=6ce141c55b2f7aafd1c4
Reported-by: syzbot+6ce141c55b2f7aafd1c4@syzkaller.appspotmail.com
Tested-by: syzbot+6ce141c55b2f7aafd1c4@syzkaller.appspotmail.com
Signed-off-by: Anant Thazhemadam <anant.thazhemadam@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-06 14:48:38 +01:00
..
ath3k.c
bcm203x.c
bfusb.c
bluecard_cs.c
bpa10x.c
bt3c_cs.c
btbcm.c Bluetooth: btbcm: Add 2 missing models to subver tables 2020-06-22 09:30:59 +02:00
btbcm.h
btintel.c
btintel.h
btmrvl_debugfs.c
btmrvl_drv.h
btmrvl_main.c
btmrvl_sdio.c btmrvl: Fix firmware filename for sd8997 chipset 2020-08-19 08:16:06 +02:00
btmrvl_sdio.h
btmtksdio.c Bluetooth: btmtksdio: Add the missed release_firmware() in mtk_setup_firmware() 2020-12-30 11:51:20 +01:00
btmtkuart.c Bluetooth: btmtkuart: Improve exception handling in btmtuart_probe() 2020-06-22 09:30:56 +02:00
btqca.c
btqca.h
btqcomsmd.c
btrsi.c
btrtl.c Bluetooth: btrtl: Use kvmalloc for FW allocations 2020-10-01 13:17:29 +02:00
btrtl.h
btsdio.c
btusb.c Bluetooth: btusb: Add the missed release_firmware() in btusb_mtk_setup_firmware() 2020-12-30 11:51:20 +01:00
btwilink.c
dtl1_cs.c
h4_recv.h
hci_ag6xx.c
hci_ath.c
hci_bcm.c Bluetooth: hci_bcm: fix freeing not-requested IRQ 2020-06-22 09:31:18 +02:00
hci_bcsp.c
hci_h4.c
hci_h5.c Bluetooth: hci_h5: close serdev device and free hu in h5_close 2021-01-06 14:48:38 +01:00
hci_intel.c
hci_ldisc.c Bluetooth: hci_uart: Cancel init work before unregistering 2020-10-29 09:57:35 +01:00
hci_ll.c Revert "Bluetooth: hci_ll: set operational frequency earlier" 2019-11-29 10:09:43 +01:00
hci_mrvl.c
hci_nokia.c
hci_qca.c
hci_serdev.c Bluetooth: hci_uart: Cancel init work before unregistering 2020-10-29 09:57:35 +01:00
hci_uart.h
hci_vhci.c
Kconfig
Makefile