diff options
| author | Brett Creeley <[email protected]> | 2019-04-16 17:24:32 +0000 |
|---|---|---|
| committer | Jeff Kirsher <[email protected]> | 2019-05-23 17:51:54 +0000 |
| commit | 72f9c2039859e6303550f202d6cc6b8d8af0178c (patch) | |
| tree | 347792370ad4fef7110ba9dd5d3e612860dbbd38 /drivers/net/ethernet/intel/ice/ice_ethtool.c | |
| parent | ice: Refactor the LLDP MIB change event handling (diff) | |
| download | kernel-72f9c2039859e6303550f202d6cc6b8d8af0178c.tar.gz kernel-72f9c2039859e6303550f202d6cc6b8d8af0178c.zip | |
ice: Gracefully handle reset failure in ice_alloc_vfs()
Currently if ice_reset_all_vfs() fails in ice_alloc_vfs() we fail to
free some resources, reset variables, and return an error value.
Fix this by adding another unroll case to free the pf->vf array, set
the pf->num_alloc_vfs to 0, and return an error code.
Without this, if ice_reset_all_vfs() fails in ice_alloc_vfs() we will
not be able to do SRIOV without hard rebooting the system because
rmmod'ing the driver does not work.
Signed-off-by: Brett Creeley <[email protected]>
Signed-off-by: Anirudh Venkataramanan <[email protected]>
Tested-by: Andrew Bowers <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_ethtool.c')
0 files changed, 0 insertions, 0 deletions
