提交 8702ed0b 编写于 作者: D Dan Carpenter 提交者: Tony Nguyen

ice: fix an error code in ice_ena_vfs()

Return the error code if ice_eswitch_configure() fails.  Don't return
success.

Fixes: 1c54c839 ("ice: enable/disable switchdev when managing VFs")
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: NSimon Horman <simon.horman@corigine.com>
Signed-off-by: NTony Nguyen <anthony.l.nguyen@intel.com>
上级 6f332353
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册