[PATCH v1 3/9] net/nbl: address nbl userdev error handling issues 490947
Dimon Zhao
dimon.zhao at nebula-matrix.com
Mon Oct 27 11:16:42 CET 2025
Coverity issue: 490947
Signed-off-by: Dimon Zhao <dimon.zhao at nebula-matrix.com>
---
drivers/net/nbl/nbl_common/nbl_userdev.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/net/nbl/nbl_common/nbl_userdev.c b/drivers/net/nbl/nbl_common/nbl_userdev.c
index 75e0e2884b..acae57020c 100644
--- a/drivers/net/nbl/nbl_common/nbl_userdev.c
+++ b/drivers/net/nbl/nbl_common/nbl_userdev.c
@@ -744,12 +744,15 @@ void nbl_pci_unmap_device(struct nbl_adapter *adapter)
{
struct rte_pci_device *pci_dev = adapter->pci_dev;
struct nbl_common_info *common = &adapter->common;
+ int ret = 0;
if (NBL_IS_NOT_COEXISTENCE(common))
return rte_pci_unmap_device(pci_dev);
rte_mem_unmap(pci_dev->mem_resource[0].addr, pci_dev->mem_resource[0].len);
- ioctl(common->devfd, NBL_DEV_USER_CLEAR_EVENTFD, 0);
+ ret = ioctl(common->devfd, NBL_DEV_USER_CLEAR_EVENTFD, 0);
+ if (ret)
+ NBL_LOG(ERR, "nbl userdev set clear eventfd failed, ret: %d", ret);
close(common->eventfd);
close(common->nl_socket_route);
--
2.34.1
More information about the dev
mailing list