]> git.droids-corp.org - dpdk.git/commit
net/bnxt: check VF representor pointer before access
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Tue, 4 Jan 2022 08:38:24 +0000 (14:08 +0530)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Wed, 12 Jan 2022 02:07:41 +0000 (03:07 +0100)
commitf30622542ccfe5e9ba31f67972e999c99e73385b
treea34b66f873f6038b91b224fdd1f65c043480ad15
parentc05c22f9b8032c2974de7042ba8c38fb42ed7c82
net/bnxt: check VF representor pointer before access

The PF or trusted VF Rx handler could invoke the VF representor's
Rx function without knowledge of the application cleaning up the
representor ports. Check if the vfr_bp pointer is valid before
accessing it.

Fixes: 6dc83230b43b ("net/bnxt: support port representor data path")
Cc: stable@dpdk.org
Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
drivers/net/bnxt/bnxt_reps.c