On 11/24/2014 05:42 PM, Jiri Denemark wrote:
Signed-off-by: Jiri Denemark <jdenemar(a)redhat.com>
---
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) {
ACK,
Pavel