mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
Revert "Bluetooth: btsdio: fix use after free bug in btsdio_remove due to unfinished work"
This reverts commit1e9ac114c4
. This patch introduces a possible null-ptr-def problem. Revert it. And the fixed bug by this patch have resolved by commit73f7b171b7
("Bluetooth: btsdio: fix use after free bug in btsdio_remove due to race condition"). Fixes:1e9ac114c4
("Bluetooth: btsdio: fix use after free bug in btsdio_remove due to unfinished work") Signed-off-by: Liu Jian <liujian56@huawei.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
committed by
Luiz Augusto von Dentz
parent
91b6d02ddc
commit
db2bf510bd
@@ -354,7 +354,6 @@ static void btsdio_remove(struct sdio_func *func)
|
|||||||
|
|
||||||
BT_DBG("func %p", func);
|
BT_DBG("func %p", func);
|
||||||
|
|
||||||
cancel_work_sync(&data->work);
|
|
||||||
if (!data)
|
if (!data)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user