bus/vmbus: close directory in error path
authorStephen Hemminger <sthemmin@microsoft.com>
Mon, 6 Aug 2018 18:11:06 +0000 (11:11 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 7 Aug 2018 12:41:40 +0000 (14:41 +0200)
commitbca88be88a6fbfe5bc108693444d2ede5b23bf2b
tree39801970a4afb40be29b1eb2d77c22574f0de7b5
parentdb803c3e4cd3215811f4b410209e184b0e50aa9b
bus/vmbus: close directory in error path

Fix bug reported by Coverity where directory being scanned was
not closed in error path (leaking file descriptor).

Coverity issue: 302848
Fixes: 831dba47bd36 ("bus/vmbus: add Hyper-V virtual bus support")

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
drivers/bus/vmbus/linux/vmbus_uio.c