Skip to content

Commit 4b2f4e0

Browse files
Dan CarpenterVudentz
authored andcommitted
Bluetooth: mgmt: Fix double free on error path
Don't call mgmt_pending_remove() twice (double free). Fixes: 6b88eff ("Bluetooth: hci_sync: Refactor remove Adv Monitor") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent 9b134b1 commit 4b2f4e0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

net/bluetooth/mgmt.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4723,7 +4723,6 @@ static int __add_adv_patterns_monitor(struct sock *sk, struct hci_dev *hdev,
47234723
else
47244724
status = MGMT_STATUS_FAILED;
47254725

4726-
mgmt_pending_remove(cmd);
47274726
goto unlock;
47284727
}
47294728

0 commit comments

Comments
 (0)