Luiz Augusto von Dentz
13e17a18a4
Bluetooth: L2CAP: Fix l2cap_global_chan_by_psm regression
...
commit 332f1795ca202489c665a75e62e18ff6284de077 upstream.
The patch d0be8347c623: "Bluetooth: L2CAP: Fix use-after-free caused
by l2cap_chan_put" from Jul 21, 2022, leads to the following Smatch
static checker warning:
net/bluetooth/l2cap_core.c:1977 l2cap_global_chan_by_psm()
error: we previously assumed 'c' could be null (see line 1996)
Fixes: d0be8347c623 ("Bluetooth: L2CAP: Fix use-after-free caused by l2cap_chan_put")
Reported-by: Dan Carpenter <[email protected] >
Signed-off-by: Luiz Augusto von Dentz <[email protected] >
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2022-08-25 11:18:17 +02:00
..
bnep
cmtp
Bluetooth: cmtp: fix possible panic when cmtp_init_sockets() fails
2022-01-27 09:19:29 +01:00
hidp
Bluetooth: hidp: use correct wait queue when removing ctrl_wait
2021-08-26 08:36:15 -04:00
rfcomm
Bluetooth: Fix passing NULL to PTR_ERR
2022-07-29 17:14:19 +02:00
6lowpan.c
a2mp.c
Bluetooth: drop HCI device reference before return
2021-03-04 10:26:14 +01:00
a2mp.h
af_bluetooth.c
amp.c
Bluetooth: Fix null pointer dereference in amp_read_loc_assoc_final_data
2021-03-07 12:20:45 +01:00
amp.h
ecdh_helper.c
ecdh_helper.h
Fix misc new gcc warnings
2021-05-11 14:04:16 +02:00
hci_conn.c
Bluetooth: Disconnect if E0 is used for Level 4
2020-10-17 10:11:22 +02:00
hci_core.c
Bluetooth: Fix the creation of hdev->name
2022-05-15 19:54:47 +02:00
hci_debugfs.c
hci_debugfs.h
hci_event.c
Bluetooth: Fix use after free in hci_send_acl
2022-04-15 14:18:34 +02:00
hci_request.c
bluetooth: eliminate the potential race condition when removing the HCI controller
2021-05-14 09:44:10 +02:00
hci_request.h
hci_sock.c
Bluetooth: defer cleanup of resources in hci_unregister_dev()
2021-08-12 13:20:58 +02:00
hci_sysfs.c
Bluetooth: defer cleanup of resources in hci_unregister_dev()
2021-08-12 13:20:58 +02:00
Kconfig
l2cap_core.c
Bluetooth: L2CAP: Fix l2cap_global_chan_by_psm regression
2022-08-25 11:18:17 +02:00
l2cap_sock.c
Bluetooth: fix use-after-free error in lock_sock_nested()
2021-11-17 09:48:27 +01:00
leds.c
leds.h
lib.c
Makefile
mgmt.c
Bluetooth: Fix the HCI to MGMT status conversion table
2021-07-19 08:53:13 +02:00
mgmt_util.c
mgmt_util.h
sco.c
Bluetooth: SCO: Fix sco_send_frame returning skb->len
2022-07-29 17:14:19 +02:00
selftest.c
selftest.h
smp.c
Bluetooth: SMP: Fail if remote and local public keys are identical
2021-05-26 12:05:21 +02:00
smp.h