net/bnxt: fix pass by reference
authorSomnath Kotur <somnath.kotur@broadcom.com>
Fri, 30 Oct 2020 07:03:04 +0000 (12:33 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:07 +0000 (23:35 +0100)
commit86274fc1cc918436068cac429a9296117df11714
tree432e133c57f5a95db1c0ee620f82853d8dd75ca4
parent0bf5a0b5ebb8e020e441c8e01c8a10900f859692
net/bnxt: fix pass by reference

Pass 'eth_da' pointer instead of pass by value to bnxt_rep_port_probe()

Coverity issue: 360841
Fixes: 322bd6e70272 ("net/bnxt: add port representor infrastructure")
Cc: stable@dpdk.org
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c