igb: resolve panic on shutdown when SR-IOV is enabled
commit77a22941f9ed052a0fdaa92753b1a1ab8072ee76
authorAlexander Duyck <alexander.h.duyck@intel.com>
Wed, 6 May 2009 23:43:48 +0000 (6 16:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 May 2009 23:43:48 +0000 (6 16:43 -0700)
tree2f75b9be0552ed4726052a9b4b49478f15e52cad
parenta860820dce09080dc3df05064b659e931ff35a29
igb: resolve panic on shutdown when SR-IOV is enabled

The setup_rctl call was making a call into the ring structure after it had
been freed.  This was causing a panic on shutdown.  This call wasn't
necessary since it is possible to get the needed index from
adapter->vfs_allocated_count.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/igb/igb_main.c