Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/bnxt: fix null pointer dereference
[ upstream commit 68eeafdef4db7362ff5307995b670a98f65f2493 ] In the recent changes to rte_eth_dev_release_port() the library sets eth_dev->data to NULL at the end of the routine. This causes a NULL pointer dereference in the bnxt_rep_dev_info_get_op() and bnxt_representor_uninit() routines when it tries to validate parent dev. Add code to handle this. Fixes: 6dc8323 ("net/bnxt: support port representor data path") Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
- Loading branch information