mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 21:45:45 +02:00
i40e: Fix error handling in i40e_vsi_open
[ Upstream commit9c04cfcd4a] When vsi->type == I40E_VSI_FDIR, we have caught the return value of i40e_vsi_request_irq() but without further handling. Check and execute memory clean on failure just like the other i40e_vsi_request_irq(). Fixes:8a9eb7d3cb("i40e: rework fdir setup and teardown") Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn> Tested-by: Tony Brelinski <tonyx.brelinski@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
aefa927744
commit
88819239e9
|
|
@ -8347,6 +8347,8 @@ int i40e_vsi_open(struct i40e_vsi *vsi)
|
||||||
dev_driver_string(&pf->pdev->dev),
|
dev_driver_string(&pf->pdev->dev),
|
||||||
dev_name(&pf->pdev->dev));
|
dev_name(&pf->pdev->dev));
|
||||||
err = i40e_vsi_request_irq(vsi, int_name);
|
err = i40e_vsi_request_irq(vsi, int_name);
|
||||||
|
if (err)
|
||||||
|
goto err_setup_rx;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
err = -EINVAL;
|
err = -EINVAL;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user