Fix off-by one in remove logic that just got introduced. Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]>
--- This only occurs in new post 2.6.23 code. --- a/drivers/net/sky2.c 2007-10-22 09:38:11.000000000 -0700 +++ b/drivers/net/sky2.c 2007-10-22 12:11:22.000000000 -0700 @@ -4271,7 +4271,7 @@ static void __devexit sky2_remove(struct del_timer_sync(&hw->watchdog_timer); cancel_work_sync(&hw->restart_work); - for (i = hw->ports; i >= 0; --i) + for (i = hw->ports-1; i >= 0; --i) unregister_netdev(hw->dev[i]); sky2_write32(hw, B0_IMSK, 0); @@ -4289,7 +4289,7 @@ static void __devexit sky2_remove(struct pci_release_regions(pdev); pci_disable_device(pdev); - for (i = hw->ports; i >= 0; --i) + for (i = hw->ports-1; i >= 0; --i) free_netdev(hw->dev[i]); iounmap(hw->regs); - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html