Blame SOURCES/0023-efiboot-parse_scsi_link-fix-the-offset-searching-for.patch

5e6fc3
From 50e8c66f92b2d93d20c2524936f6858fd2b07afe Mon Sep 17 00:00:00 2001
5e6fc3
From: Peter Jones <pjones@redhat.com>
5e6fc3
Date: Thu, 21 Jun 2018 14:23:40 -0400
5e6fc3
Subject: [PATCH 23/39] efiboot: parse_scsi_link(): fix the offset searching
5e6fc3
 for the port
5e6fc3
5e6fc3
Signed-off-by: Peter Jones <pjones@redhat.com>
5e6fc3
---
5e6fc3
 src/linux-scsi.c | 2 +-
5e6fc3
 1 file changed, 1 insertion(+), 1 deletion(-)
5e6fc3
5e6fc3
diff --git a/src/linux-scsi.c b/src/linux-scsi.c
5e6fc3
index 80c2fb7d82e..2e4f710badf 100644
5e6fc3
--- a/src/linux-scsi.c
5e6fc3
+++ b/src/linux-scsi.c
5e6fc3
@@ -92,7 +92,7 @@ parse_scsi_link(const char *current, uint32_t *scsi_host,
5e6fc3
         pos0 = 0;
5e6fc3
 
5e6fc3
         debug("searching for port-4:0 or port-4:0:0");
5e6fc3
-        rc = sscanf(current, "port-%d:%d%n:%d%n", &tosser0,
5e6fc3
+        rc = sscanf(current+sz, "port-%d:%d%n:%d%n", &tosser0,
5e6fc3
                     &tosser1, &pos0, &tosser2, &pos1);
5e6fc3
         debug("current:\"%s\" rc:%d pos0:%d pos1:%d\n", current+sz, rc, pos0, pos1);
5e6fc3
         arrow(LOG_DEBUG, spaces, 9, pos0, rc, 2);
5e6fc3
-- 
5e6fc3
2.17.1
5e6fc3