Revert "Bluetooth: hci_core: Fix use-after-free in vhci_flush()"

This reverts commit ce23b73f0f which is
commit 1d6123102e9fbedc8d25bf4731da6d513173e49e upstream.

It breaks the Android kernel abi and can be brought back in the future
in an abi-safe way if it is really needed.

Bug: 161946584
Change-Id: Id61431c9decd8e97b69d0a3871b2658242c092ee
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman
2025-07-10 18:45:42 +00:00
parent a778622fe4
commit 67767146c7
2 changed files with 4 additions and 32 deletions
-2
View File
@@ -29,7 +29,6 @@
#include <linux/idr.h>
#include <linux/leds.h>
#include <linux/rculist.h>
#include <linux/srcu.h>
#include <linux/android_kabi.h>
#include <net/bluetooth/hci.h>
@@ -341,7 +340,6 @@ struct adv_monitor {
struct hci_dev {
struct list_head list;
struct srcu_struct srcu;
struct mutex lock;
struct ida unset_handle_ida;