Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/txgbe: fix use-after-free on remove
[ upstream commit 0105788ebac6c796f30361912377550207084a17 ] When cleaning up NIC's interrupts, it is possible to add some alarms at the same time. However, if these alarms are not canceled, it may cause use-after-free problems. Therefore, after cleaning up NIC's interrupts, these alarms should also be canceled. Fixes: d3bb4a04eac1 ("net/txgbe: add SFP hotplug identification") Fixes: e0d876e ("net/txgbe: support device stop and close") Reported-by: Pengfei Sun <sunpengfei16@huawei.com> Signed-off-by: Yunjian Wang <wangyunjian@huawei.com> Reviewed-by: Jiawen Wu <jiawenwu@trustnetic.com>
- Loading branch information