Revert "ntb: ntb_hw_switchtec: Fix use after free vulnerability in switchtec_ntb_remove due to race condition"

This reverts commit 9f06c4e294.
This commit is contained in:
Ksawlii 2024-11-24 00:22:58 +01:00
parent 894b6b4155
commit 7d3609eb9b

View file

@ -1558,7 +1558,6 @@ static void switchtec_ntb_remove(struct device *dev,
switchtec_ntb_deinit_db_msg_irq(sndev);
switchtec_ntb_deinit_shared_mw(sndev);
switchtec_ntb_deinit_crosslink(sndev);
cancel_work_sync(&sndev->check_link_status_work);
kfree(sndev);
dev_info(dev, "ntb device unregistered\n");
}