Re: [PATCH net] bnxt_en: fix NULL dereference in case SR-IOV configuration fails

2020-07-10 Thread David Miller
From: Davide Caratti 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

Re: [PATCH net] bnxt_en: fix NULL dereference in case SR-IOV configuration fails

2020-07-10 Thread Jonathan Toppins
On 7/10/20 6:55 AM, Davide Caratti wrote: > 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 follow

Re: [PATCH net] bnxt_en: fix NULL dereference in case SR-IOV configuration fails

2020-07-10 Thread Michael Chan
On Fri, Jul 10, 2020 at 3:55 AM Davide Caratti wrote: > > 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 one

[PATCH net] bnxt_en: fix NULL dereference in case SR-IOV configuration fails

2020-07-10 Thread Davide Caratti
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/${A