]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: Fix error handling in i40e_vsi_open
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Sun, 28 Feb 2021 11:50:58 +0000 (19:50 +0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 24 Jun 2021 16:38:26 +0000 (09:38 -0700)
commit9df9d48bc86710c8d8caaa0bb1351eb0c0696220
treecc0db1bb087d1d89bb27e659b3b8ff3e071d41b9
parenta57c1c379d3734e34f3b3c4ff259a25ebfcd43f3
i40e: Fix error handling in i40e_vsi_open

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: 5677ffe3e4fc6 ("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>
drivers/net/ethernet/intel/i40e/i40e_main.c