From: Davide Caratti <dcara...@redhat.com>
Date: Fri, 10 Jul 2020 12:55:08 +0200

> we need to set 'active_vfs' back to 0, if something goes wrong during the
> allocation of SR-IOV resources: otherwise, further VF configurations will
> wrongly assume that bp->pf.vf[x] are valid memory locations, and commands
> like the ones in the following sequence:
> 
>  # echo 2 >/sys/bus/pci/devices/${ADDR}/sriov_numvfs
>  # ip link set dev ens1f0np0 up
>  # ip link set dev ens1f0np0 vf 0 trust on
> 
> will cause a kernel crash similar to this:
 ...
> Fixes: c0c050c58d840 ("bnxt_en: New Broadcom ethernet driver.")
> Reported-by: Fei Liu <fe...@redhat.com>
> CC: Jonathan Toppins <jtopp...@redhat.com>
> CC: Michael Chan <michael.c...@broadcom.com>
> Signed-off-by: Davide Caratti <dcara...@redhat.com>

Applied and queued up for -stable, thanks.

Reply via email to