]> git.baikalelectronics.ru Git - kernel.git/commit
igb: resolve panic on shutdown when SR-IOV is enabled
authorAlexander Duyck <alexander.h.duyck@intel.com>
Wed, 6 May 2009 23:43:48 +0000 (16:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 May 2009 23:43:48 +0000 (16:43 -0700)
commitbe7d64e45a33386b332139b064c75d066ef0994a
tree2f75b9be0552ed4726052a9b4b49478f15e52cad
parent0aad12fada637ae234914a4259f8c4b7c060dc1e
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