igb: cleanup code related to ring resource allocation and free
authorAlexander Duyck <alexander.h.duyck@intel.com>
Tue, 27 Oct 2009 23:49:20 +0000 (23:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Oct 2009 10:25:48 +0000 (03:25 -0700)
commit439705e1d7281cc8a4631a2dc390df7ad868bad8
tree5c817cb6065a8172b10c70a92c0306933e87dcab
parentf7ba205e823f32e634712323a221b42bfea06efa
igb: cleanup code related to ring resource allocation and free

This patch cleans up some of the ring alloc and free code to better handle
exceptions such as attempting to free resources on an already freed ring.

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