[Intel-wired-lan] [PATCH v4 10/13] ice: Fix a few null pointer dereference issues

Brelinski, TonyX tonyx.brelinski at intel.com
Tue Aug 21 21:30:04 UTC 2018


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Anirudh Venkataramanan
> Sent: Thursday, August 9, 2018 6:29 AM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH v4 10/13] ice: Fix a few null pointer
> dereference issues
> 
> 1) When ice_ena_msix_range() fails to reserve vectors, a devm_kfree()
>    warning was seen in the error flow path. So check pf->irq_tracker
>    before use in ice_clear_interrupt_scheme().
> 
> 2) In ice_vsi_cfg(), check vsi->netdev before use.
> 
> 3) In ice_get_link_status, check link_up before use.
> 
> Signed-off-by: Anirudh Venkataramanan
> <anirudh.venkataramanan at intel.com>
> ---
>  drivers/net/ethernet/intel/ice/ice_common.c |  2 +-
>  drivers/net/ethernet/intel/ice/ice_main.c   | 17 ++++++++++-------
>  2 files changed, 11 insertions(+), 8 deletions(-)

Tested-by: Tony Brelinski <tonyx.brelinski at intel.com>




More information about the Intel-wired-lan mailing list