On 7/10/15, 2:08 PM, leeman.dun...@gmail.com wrote:
From: Lee Duncan <ldun...@suse.com>

The iBFT 'origin' value is read in one place correctly
as an integer. This fixes the place where it was
treated as a string.
---
  utils/fwparam_ibft/fwparam_ibft_sysfs.c | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/utils/fwparam_ibft/fwparam_ibft_sysfs.c 
b/utils/fwparam_ibft/fwparam_ibft_sysfs.c
index 2dc6f6d5fe54..019fc19184bb 100644
--- a/utils/fwparam_ibft/fwparam_ibft_sysfs.c
+++ b/utils/fwparam_ibft/fwparam_ibft_sysfs.c
@@ -201,8 +201,7 @@ static int fill_nic_context(char *id, struct boot_context 
*context)
                      sizeof(context->secondary_dns));
        sysfs_get_str(id, IBFT_SUBSYS, "dhcp", context->dhcp,
                      sizeof(context->dhcp));
-       sysfs_get_str(id, IBFT_SUBSYS, "origin", context->origin,
-                     sizeof(context->origin));
+       sysfd_get_int(id, IBFT_SUBSYS, "origin", &context->origin);
        return 0;
  }


Merged in commit cab532bab9886f666518e18a6ef6b56b09d73864. Thanks.

--
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To post to this group, send email to open-iscsi@googlegroups.com.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to