Re: [PATCH] Bluetooth: hci_core: Fix poential Use-after-Free bug in hci_remove_adv_monitor

From: Zheng Hacker
Date: Mon Feb 13 2023 - 03:22:21 EST


Paul Menzel <pmenzel@xxxxxxxxxxxxx> 于2023年2月13日周一 16:19写道:
>
> Dear Zheng,
>
>
> Thank you for your patch.
>
> Am 10.02.23 um 05:10 schrieb Zheng Wang:
> > In hci_remove_adv_monitor, if it gets into HCI_ADV_MONITOR_EXT_MSFT case,
> > the function will free the monitor and print its handle after that.
> >
> > Fix it by switch the order.
>
> … by switch*ing* …
>
> There is a small typo in the commit message summary/title: po*t*ential
>
Hi Paul,

Thanks for pointing that out ^^. Will correct it in the next version of patch.

Best regards,
Zheng Wang