raw/cnxk_gpio: stop device once tests are complete

Started device should eventually be stopped.

Fixes: 0e6557b448 ("raw/cnxk_gpio: add self test")

Signed-off-by: Tomasz Duszynski <tduszynski@marvell.com>
Reviewed-by: Jerin Jacob <jerinj@marvell.com>
This commit is contained in:
Tomasz Duszynski 2022-02-25 15:55:46 +01:00 committed by Thomas Monjalon
parent 311b17e669
commit 24469b7891

View File

@ -390,6 +390,7 @@ cnxk_gpio_selftest(uint16_t dev_id)
out:
close(fd);
rte_rawdev_stop(dev_id);
return ret;
}