]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: mgmt: Fix double free on error path
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 26 Jul 2022 15:13:44 +0000 (18:13 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 26 Jul 2022 20:32:40 +0000 (13:32 -0700)
commit4af9e082155ae6d6d1e815082fae8a30be3d2a59
tree68400f3da6163d14d7ca656cc832ab48a4757156
parentb5445f9da1b4d70b74092ae7863fbd3707a2e878
Bluetooth: mgmt: Fix double free on error path

Don't call mgmt_pending_remove() twice (double free).

Fixes: 6b88eff43704 ("Bluetooth: hci_sync: Refactor remove Adv Monitor")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/mgmt.c