]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Bluetooth: L2CAP: Fix invalid access if ECRED Reconfigure fails
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 19 May 2021 20:41:50 +0000 (13:41 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 20 May 2021 15:18:39 +0000 (17:18 +0200)
commita563f2a47ca3164edfc1e3deb74a397e939b87ae
tree10ec1fdab685bf45733e3f559fdb582e5895be22
parentb8950e6815b6848a521baccbb4b855a6e3a3b573
Bluetooth: L2CAP: Fix invalid access if ECRED Reconfigure fails

The use of l2cap_chan_del is not safe under a loop using
list_for_each_entry.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap_core.c