Fix ptr dereference in igb_reset handler
authorintel-ethernet <eric_mann@mail.intel.com>
Tue, 25 Jun 2013 17:57:20 +0000 (10:57 -0700)
committerintel-ethernet <eric_mann@mail.intel.com>
Tue, 25 Jun 2013 17:57:20 +0000 (10:57 -0700)
lib/igb/igb.c

index 1abb7ce..e60f11b 100644 (file)
@@ -346,7 +346,7 @@ igb_reset(struct adapter *adapter)
                E1000_WRITE_REG(hw, E1000_TDT(i), 0);
                E1000_WRITE_REG(hw, E1000_TDH(i), 0);
 
-               txr[i].queue_status = IGB_QUEUE_IDLE;
+               txr->queue_status = IGB_QUEUE_IDLE;
        }
 
 }