Re: [PATCH v2] Bluetooth: fix memory leak in error path of hci_alloc_dev()

From: Markus Elfring

Date: Sun May 31 2026 - 14:13:37 EST



> Fix the leak by explicitly calling cleanup_srcu_struct() in the
> fallback (unregistered) branch of bt_host_release() before freeing
> the device.

> ---
> net/bluetooth/hci_sysfs.c | 4 +++-

Some contributors would appreciate patch version descriptions.
https://lore.kernel.org/all/?q=%22This+looks+like+a+new+version+of+a+previously+submitted+patch%22
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v7.1-rc5#n310

Regards,
Markus