eal/bsd: fix possible IOPL fd leak
authorIlya Maximets <i.maximets@samsung.com>
Fri, 23 Nov 2018 15:39:19 +0000 (18:39 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 25 Nov 2018 10:44:25 +0000 (11:44 +0100)
commit9e8b90fc6de98989583c9468769e5898bf6e9e0d
tree15975fe65e7a24980feb26b26003eeee2dc3ccca
parent8747682a69de45187f883107d29fedfc13554485
eal/bsd: fix possible IOPL fd leak

If rte_eal_iopl_init() will be called more than once we'll leak
the file descriptor.

Fixes: b46fe31862ec ("eal/bsd: fix virtio on FreeBSD")
Cc: stable@dpdk.org
Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_eal/bsdapp/eal/eal.c