-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix removing the port that leads to a crash
In the rte_eth_dev_close(), it will clear the port, so it can't get the dev_info, dev_info maybe is NULL, so rte_dev_remove() maybe can leads the crash. Since DPDK v19.11, the return type of the rte_eth_dev_info_get() function has changed from 'void' to 'int'. So we need to add an int variable to receive the return value. Signed-off-by: Peng Zhang <[email protected]> Signed-off-by: Zerun Fu <[email protected]> Signed-off-by: Louis Peens <[email protected]>
- Loading branch information
1 parent
2787a43
commit 87129ad
Showing
1 changed file
with
68 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters