aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ibm_newemac/core.h
diff options
context:
space:
mode:
authorGreg Rose <gregory.v.rose@intel.com>2010-09-23 12:46:25 +0000
committerDavid S. Miller <davem@davemloft.net>2010-09-24 22:43:31 -0700
commitbba50b99b2410e863b38afdcd0280eb37f8a8bcc (patch)
tree82189c764ac0dacb10d6085b31100c0ae544881b /drivers/net/ibm_newemac/core.h
parentstmmac: review the wake-up support (diff)
downloadlinux-dev-bba50b99b2410e863b38afdcd0280eb37f8a8bcc.tar.xz
linux-dev-bba50b99b2410e863b38afdcd0280eb37f8a8bcc.zip
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 <gregory.v.rose@intel.com> Tested-by: Emil Tantilov <emil.s.tantilov@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ibm_newemac/core.h')
0 files changed, 0 insertions, 0 deletions