Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ice: fix error code in ice_eswitch_attach()

Set the "err" variable on this error path.

Fixes: fff292b47ac1 ("ice: add VF representors one by one")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Link: https://lore.kernel.org/r/e0349ee5-76e6-4ff4-812f-4aa0d3f76ae7@moroto.mountain
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Dan Carpenter and committed by
Jakub Kicinski
1bc9d12e 4540c29a

+3 -1
+3 -1
drivers/net/ethernet/intel/ice/ice_eswitch.c
··· 669 669 ice_eswitch_stop_reprs(pf); 670 670 671 671 repr = ice_repr_add_vf(vf); 672 - if (IS_ERR(repr)) 672 + if (IS_ERR(repr)) { 673 + err = PTR_ERR(repr); 673 674 goto err_create_repr; 675 + } 674 676 675 677 err = ice_eswitch_setup_repr(pf, repr); 676 678 if (err)