Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ upstream commit b7ade5d ] 'eth_dev->data' can be null before ethdev allocated. The API walks through all eth devices, at least for some data can be null. Adding 'eth_dev->data' null check before accessing it. Fixes: 33c73aa ("ethdev: allow ownership operations on unused port") Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Acked-by: Chenbo Xia <chenbo.xia@intel.com> Acked-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
- Loading branch information