From: Alexander Duyck Date: Fri, 18 May 2012 06:33:47 +0000 (+0000) Subject: ixgbe: Handle failures in the ixgbe_setup_rx/tx_resources calls X-Git-Tag: v3.6-rc1~125^2~118^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de3d5b94bc891c405b8d91d3c112681a0654613f;p=pandora-kernel.git ixgbe: Handle failures in the ixgbe_setup_rx/tx_resources calls Previously we were exiting without cleaning up the memory internally on the ixgbe_setup_rx_resources and ixgbe_setup_tx_resources calls. Instead of forcing the caller to clean things up for us we should instead just unwind the rings and free the memory as we go. This way we can more gracefully clean up the rings in the event of an allocation failure. Signed-off-by: Alexander Duyck Tested-by: Phil Schmitt Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed