]> xenbits.xensource.com Git - people/hx242/xen.git/commit
tools: fix error path of xenhypfs_open()
authorJuergen Gross <jgross@suse.com>
Tue, 9 Jun 2020 14:48:49 +0000 (16:48 +0200)
committerWei Liu <wl@xen.org>
Tue, 9 Jun 2020 15:35:15 +0000 (15:35 +0000)
commit30a72f028707d8cdc7951b50268e33818497596e
tree84e6935bb2c935e8245265c458846e3f64c601f6
parent1a58d8dab52f241d52fec1d992d859b9632c4739
tools: fix error path of xenhypfs_open()

In case of an error in xenhypfs_open() the error path will cause a
segmentation fault due to a wrong sequence of closing calls.

Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Fixes: 86234eafb9529 ("libs: add libxenhypfs")
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Release-acked-by: Paul Durrant <paul@xen.org>
Acked-by: Wei Liu <wl@xen.org>
tools/libs/hypfs/core.c