> -----Original Message-----
> From: Walsh, Conor <[email protected]>
> Sent: Tuesday, October 20, 2020 18:03
> To: Guo, Jia <[email protected]>; Wang, Haiyue <[email protected]>; 
> Yigit, Ferruh
> <[email protected]>; Awal, Mohammad Abdul 
> <[email protected]>; Doherty, Declan
> <[email protected]>; [email protected]
> Cc: [email protected]; Walsh, Conor <[email protected]>
> Subject: [PATCH v2 1/2] net/ixgbe: fix unchecked return value
> 
> The return value of rte_eth_switch_domain_alloc() was not being checked
> within ixgbe_pf_host_init() which caused a coverity issue. If the call
> fails a warning is logged using PMD_INIT_LOG() and *vfinfo is free'd.
> ixgbe_pf_host_init() now has a return value which is checked in
> eth_ixgbe_dev_init()
> 
> Coverity issue: 362795
> Fixes: cf80ba6e2038 ("net/ixgbe: add support for representor ports")
> 
> Signed-off-by: Conor Walsh <[email protected]>
> ---
>  drivers/net/ixgbe/ixgbe_ethdev.c | 11 +++++++++--
>  drivers/net/ixgbe/ixgbe_ethdev.h |  2 +-
>  drivers/net/ixgbe/ixgbe_pf.c     | 16 +++++++++++++---
>  3 files changed, 23 insertions(+), 6 deletions(-)

Acked-by: Haiyue Wang <[email protected]>

> --
> 2.25.1

Reply via email to