Files
linux/net
Zhengchao Shao 8ac6043bd3 Bluetooth: hci_sync: fix memory leak in hci_update_adv_data()
[ Upstream commit 1ed8b37cba ]

When hci_cmd_sync_queue() failed in hci_update_adv_data(), inst_ptr is
not freed, which will cause memory leak, convert to use ERR_PTR/PTR_ERR
to pass the instance to callback so no memory needs to be allocated.

Fixes: 651cd3d65b ("Bluetooth: convert hci_update_adv_data to hci_sync")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-01 08:34:22 +01:00
..
2023-01-18 11:58:26 +01:00
2022-08-22 14:26:30 +01:00
2022-08-22 14:26:30 +01:00