Commit 6c0e2636 authored by Angelo Dell\'Aera's avatar Angelo Dell\'Aera Committed by David S. Miller

[NET]: Trivial fix for 82596 driver.

parent bd811ee2
......@@ -1420,15 +1420,15 @@ static int i596_close(struct net_device *dev)
DEB(DEB_INIT,printk(KERN_DEBUG "%s: Shutting down ethercard, status was %4.4x.\n",
dev->name, lp->scb.status));
save_flags(flags);
cli();
spin_lock_irqsave(&lp->lock, flags);
wait_cmd(dev,lp,100,"close1 timed out");
lp->scb.command = CUC_ABORT | RX_ABORT;
CA(dev);
wait_cmd(dev,lp,100,"close2 timed out");
restore_flags(flags);
spin_unlock_irqrestore(&lp->lock, flags);
DEB(DEB_STRUCT,i596_display_data(dev));
i596_cleanup_cmd(dev,lp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment