From: Greg Rose Date: Thu, 23 Sep 2010 12:46:25 +0000 (+0000) Subject: ixgbevf: Refactor ring parameter re-size X-Git-Tag: v2.6.37-rc1~147^2~358 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bba50b99b2410e863b38afdcd0280eb37f8a8bcc;p=pandora-kernel.git ixgbevf: Refactor ring parameter re-size The function to resize the Tx/Rx rings had the potential to dereference a NULL pointer and the code would attempt to resize the Tx ring even if the Rx ring allocation had failed. This would cause some confusion in the return code semantics. Fixed up to just unwind the allocations if any of them fail and return an error. Signed-off-by: Greg Rose Tested-by: Emil Tantilov Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller --- Reading git-diff-tree failed