bus/vmbus: fix directory handle leak on error
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 6 Nov 2018 19:30:03 +0000 (11:30 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 14 Nov 2018 01:13:56 +0000 (02:13 +0100)
commit6521c9a2f7e00b0fcee940e0570ee12fcd9ca8dc
tree18971d1b96f35a90662232690d40e638bc36b8c4
parent6927f8dbf3db975cd968287c511122ddccc076bb
bus/vmbus: fix directory handle leak on error

If sysfs directory was incorrectly formatted then the vmbus
setup code would leak a directory handle in the error path.

Coverity issue: 302848
Fixes: 831dba47bd36 ("bus/vmbus: add Hyper-V virtual bus support")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/bus/vmbus/linux/vmbus_uio.c