]> git.baikalelectronics.ru Git - kernel.git/commit
igb: set num_rx/tx_queues to 0 when queues are freed
authorAlexander Duyck <alexander.h.duyck@intel.com>
Tue, 31 Mar 2009 20:38:19 +0000 (20:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Apr 2009 07:59:06 +0000 (00:59 -0700)
commit39f3b9bc4c27d9d23c23a89a025858e7048e4798
treea587e56be10cf9f5df8399d9eff926c133fd4f96
parente431d70375c993f1a9fc9d7911b55e09daabfccc
igb: set num_rx/tx_queues to 0 when queues are freed

An issue was seen on suspend in which the system reported a page fault.  This
was due to the new reg_idx code being called after the queues were freed.

This update prevents any for loops from going through the queues by setting
the number of queues to 0 when they are freed.

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