lib/iscsi:break the loop in iscsi_parse_portal_grp() when the portal
section reaches the end Change-Id: Ia7a23833927e24b1f90a443b582b2f43ea00f450 Signed-off-by: zhuxiaohui.400 <zhuxiaohui.400@bytedance.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/979 Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Ziye Yang <ziye.yang@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
044704995d
commit
32f59976df
@ -400,8 +400,7 @@ iscsi_parse_portal_grp(struct spdk_conf_section *sp)
|
||||
label = spdk_conf_section_get_nmval(sp, "Portal", i, 0);
|
||||
portal = spdk_conf_section_get_nmval(sp, "Portal", i, 1);
|
||||
if (label == NULL || portal == NULL) {
|
||||
SPDK_ERRLOG("portal error\n");
|
||||
goto error;
|
||||
break;
|
||||
}
|
||||
|
||||
rc = iscsi_parse_portal(portal, &p);
|
||||
|
Loading…
Reference in New Issue
Block a user