Skip to content

Commit

Permalink
Revert "Bluetooth: btsdio: fix use after free bug in btsdio_remove du…
Browse files Browse the repository at this point in the history
…e to unfinished work"

[ Upstream commit db2bf51 ]

This reverts commit 1e9ac11.

This patch introduces a possible null-ptr-def problem. Revert it. And the
fixed bug by this patch have resolved by commit 73f7b17 ("Bluetooth:
btsdio: fix use after free bug in btsdio_remove due to race condition").

Fixes: 1e9ac11 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
liujian56 authored and gregkh committed May 11, 2023
1 parent 12972ae commit d8d7ce0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/bluetooth/btsdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,6 @@ static void btsdio_remove(struct sdio_func *func)

BT_DBG("func %p", func);

cancel_work_sync(&data->work);
if (!data)
return;

Expand Down

0 comments on commit d8d7ce0

Please sign in to comment.