Skip to content

Commit cbaf375

Browse files
committed
Flush link status update work before NT device removal
1 parent ba8256c commit cbaf375

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ntb_hw_switchtec.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1853,6 +1853,8 @@ static void switchtec_ntb_remove(struct device *dev,
18531853
if (!sndev)
18541854
return;
18551855

1856+
flush_scheduled_work();
1857+
18561858
stdev->link_notifier = NULL;
18571859
stdev->sndev = NULL;
18581860
sysfs_remove_group(&sndev->ntb.dev.kobj, &switchtec_ntb_device_group);

0 commit comments

Comments
 (0)