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 <[email protected] >
Reviewed-by: Hans de Goede <[email protected] >
Signed-off-by: Luiz Augusto von Dentz <[email protected] >
Signed-off-by: Sasha Levin <[email protected] >
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
Bluetooth: btmtksdio: Fix kernel oops in btmtksdio_interrupt
2022-04-15 14:18:16 +02:00
btmtkuart.c
Bluetooth: btmtkuart: fix recv_buf() return value
2024-01-25 14:34:26 -08:00
btqca.c
btqca.h
btqcomsmd.c
Bluetooth: btqcomsmd: Fix command timeout after setting BD address
2023-04-05 11:16:38 +02:00
btrsi.c
btrtl.c
Bluetooth: btrtl: Prevent potential NULL dereference
2025-05-02 07:39:19 +02:00
btrtl.h
btsdio.c
Bluetooth: btsdio: fix use after free bug in btsdio_remove due to race condition
2023-09-23 10:59:37 +02:00
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
Bluetooth: hci_bcm: Check for error irq
2022-01-27 09:19:36 +01:00
hci_bcsp.c
Bluetooth: hci_bcsp: don't call kfree_skb() under spin_lock_irqsave()
2023-01-18 11:41:16 +01:00
hci_h4.c
hci_h5.c
Bluetooth: hci_h5: don't call kfree_skb() under spin_lock_irqsave()
2023-01-18 11:41:16 +01:00
hci_intel.c
Bluetooth: hci_intel: Add check for platform_driver_register
2022-08-25 11:17:47 +02:00
hci_ldisc.c
Bluetooth: hci_uart: Fix another race during initialization
2025-05-02 07:39:18 +02:00
hci_ll.c
Bluetooth: hci_ll: don't call kfree_skb() under spin_lock_irqsave()
2023-01-18 11:41:16 +01:00
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
Bluetooth: hci_qca: don't call kfree_skb() under spin_lock_irqsave()
2023-01-18 11:41:16 +01:00
hci_serdev.c
Bluetooth: hci_serdev: call init_rwsem() before p->open()
2022-04-15 14:18:10 +02:00
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