Started device should eventually be stopped.
Fixes: 0e6557b448fa ("raw/cnxk_gpio: add self test")
Signed-off-by: Tomasz Duszynski <[email protected]>
Reviewed-by: Jerin Jacob Kollanukkaran <[email protected]>
---
drivers/raw/cnxk_gpio/cnxk_gpio_selftest.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/raw/cnxk_gpio/cnxk_gpio_selftest.c
b/drivers/raw/cnxk_gpio/cnxk_gpio_selftest.c
index acb65afa65..10742b5dc4 100644
--- a/drivers/raw/cnxk_gpio/cnxk_gpio_selftest.c
+++ b/drivers/raw/cnxk_gpio/cnxk_gpio_selftest.c
@@ -390,6 +390,7 @@ cnxk_gpio_selftest(uint16_t dev_id)
out:
close(fd);
+ rte_rawdev_stop(dev_id);
return ret;
}
--
2.25.1