Skip to content

Commit

Permalink
vxge: add missing flush of reset_task
Browse files Browse the repository at this point in the history
Commit 6e07ebd (drivers/net: remove unnecessary
flush_scheduled_work() calls) incorrectly removed the flush call
without replacing it with the appropriate work specific operation.
Fix it by flushing vdev->reset_task explicitly.

Pointed out by Jon Mason.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Jon Mason <jon.mason@exar.com>
Acked-by: Jon Mason <jon.mason@exar.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Tejun Heo authored and David S. Miller committed Dec 20, 2010
1 parent 71d9dec commit ba27d85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/vxge/vxge-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3439,6 +3439,8 @@ static void vxge_device_unregister(struct __vxge_hw_device *hldev)

strncpy(buf, dev->name, IFNAMSIZ);

flush_work_sync(&vdev->reset_task);

/* in 2.6 will call stop() if device is up */
unregister_netdev(dev);

Expand Down

0 comments on commit ba27d85

Please sign in to comment.