mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 06:33:34 +00:00
ice: fix an error code in ice_ena_vfs()
Return the error code if ice_eswitch_configure() fails. Don't return
success.
Fixes: 1c54c83993
("ice: enable/disable switchdev when managing VFs")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
parent
6f3323536a
commit
8702ed0b0d
@ -2015,7 +2015,8 @@ static int ice_ena_vfs(struct ice_pf *pf, u16 num_vfs)
|
||||
|
||||
clear_bit(ICE_VF_DIS, pf->state);
|
||||
|
||||
if (ice_eswitch_configure(pf))
|
||||
ret = ice_eswitch_configure(pf);
|
||||
if (ret)
|
||||
goto err_unroll_sriov;
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user