Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx> --- src/util/virutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/virutil.c b/src/util/virutil.c index 9c40317..3037293 100644 --- a/src/util/virutil.c +++ b/src/util/virutil.c @@ -1780,7 +1780,7 @@ virFindSCSIHostByPCI(const char *sysfs_prefix, virReportSystemError(errno, _("Failed to opendir path '%s'"), prefix); - goto cleanup; + return NULL; } while (virDirRead(dir, &entry, prefix) > 0) { -- 2.1.3 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list