Blame SOURCES/0024-efi_generate_file_device_path-make-all-error-paths-u.patch

ac385c
From 1995ef6d9459931170f5718221104d7eb8c35eba Mon Sep 17 00:00:00 2001
ac385c
From: Peter Jones <pjones@redhat.com>
ac385c
Date: Tue, 9 May 2017 16:32:09 -0400
ac385c
Subject: [PATCH 24/26] efi_generate_file_device_path(): make all error paths
ac385c
 use "goto err;"
ac385c
ac385c
Honestly I'm just trying to shut coverity up about checking
ac385c
child_devpath for NULL-ness twice on the other two error paths.
ac385c
ac385c
Signed-off-by: Peter Jones <pjones@redhat.com>
ac385c
---
ac385c
 src/creator.c | 2 +-
ac385c
 1 file changed, 1 insertion(+), 1 deletion(-)
ac385c
ac385c
diff --git a/src/creator.c b/src/creator.c
ac385c
index ccd0faf..21fc6b0 100644
ac385c
--- a/src/creator.c
ac385c
+++ b/src/creator.c
ac385c
@@ -339,7 +339,7 @@ efi_generate_file_device_path(uint8_t *buf, ssize_t size,
ac385c
 	rc = find_file(filepath, &child_devpath, &relpath);
ac385c
 	if (rc < 0) {
ac385c
 		efi_error("could not canonicalize fs path");
ac385c
-		return -1;
ac385c
+		goto err;
ac385c
 	}
ac385c
 
ac385c
 	rc = find_parent_devpath(child_devpath, &parent_devpath);
ac385c
-- 
ac385c
2.12.2
ac385c