android_kernel_motorola_sm6375/drivers/bluetooth
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dan Carpenter c3e9717276 Bluetooth: btrtl: Prevent potential NULL dereference
[ Upstream commit 324dddea321078a6eeb535c2bff5257be74c9799 ]

The btrtl_initialize() function checks that rtl_load_file() either
had an error or it loaded a zero length file.  However, if it loaded
a zero length file then the error code is not set correctly.  It
results in an error pointer vs NULL bug, followed by a NULL pointer
dereference.  This was detected by Smatch:

drivers/bluetooth/btrtl.c:592 btrtl_initialize() warn: passing zero to 'ERR_PTR'

Fixes: 26503ad25d ("Bluetooth: btrtl: split the device initialization into smaller parts")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-05-02 07:39:19 +02:00
..
ath3k.c Bluetooth: ath3k: Fix multiple issues reported by checkpatch.pl 2024-07-05 09:08:21 +02:00
bcm203x.c
bfusb.c
bluecard_cs.c
bpa10x.c
bt3c_cs.c
btbcm.c
btbcm.h
btintel.c Bluetooth: btintel: Fixe build regression 2024-04-13 12:51:40 +02:00
btintel.h
btmrvl_debugfs.c
btmrvl_drv.h
btmrvl_main.c
btmrvl_sdio.c Bluetooth: btmrvl: Use IRQF_NO_AUTOEN flag in request_irq() 2024-11-08 16:20:36 +01:00
btmrvl_sdio.h
btmtksdio.c
btmtkuart.c Bluetooth: btmtkuart: fix recv_buf() return value 2024-01-25 14:34:26 -08:00
btqca.c
btqca.h
btqcomsmd.c
btrsi.c
btrtl.c Bluetooth: btrtl: Prevent potential NULL dereference 2025-05-02 07:39:19 +02:00
btrtl.h
btsdio.c
btusb.c Bluetooth: btusb: Add RTL8852BE device 0489:e123 to device tables 2024-12-14 19:44:52 +01:00
btwilink.c
dtl1_cs.c
h4_recv.h
hci_ag6xx.c
hci_ath.c
hci_bcm.c
hci_bcsp.c
hci_h4.c
hci_h5.c
hci_intel.c
hci_ldisc.c Bluetooth: hci_uart: Fix another race during initialization 2025-05-02 07:39:18 +02:00
hci_ll.c
hci_mrvl.c
hci_nokia.c Bluetooth: nokia: fix value check in nokia_bluetooth_serdev_probe() 2023-09-23 10:59:42 +02:00
hci_qca.c
hci_serdev.c
hci_uart.h Bluetooth: hci_uart: Fix another race during initialization 2025-05-02 07:39:18 +02:00
hci_vhci.c Bluetooth: vhci: Fix race when opening vhci device 2023-10-25 11:53:20 +02:00
Kconfig
Makefile