Revert "Bluetooth: btsdio: fix use after free bug in btsdio_remove due to unfinished work"
[ Upstream commitdb2bf510bd] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
566785731c
commit
0837d10f6c
1 changed files with 0 additions and 1 deletions
|
|
@ -352,7 +352,6 @@ static void btsdio_remove(struct sdio_func *func)
|
|||
|
||||
BT_DBG("func %p", func);
|
||||
|
||||
cancel_work_sync(&data->work);
|
||||
if (!data)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue