提交 3f0ed57b 编写于 作者: A Andy Grover 提交者: Nicholas Bellinger

target: Allocate more room for port default groups

See target_stat_setup_port_default_groups, we need a 4 element array.
Signed-off-by: NAndy Grover <agrover@redhat.com>
Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
上级 38becbea
...@@ -906,7 +906,7 @@ static struct config_group *target_fabric_make_lun( ...@@ -906,7 +906,7 @@ static struct config_group *target_fabric_make_lun(
lun_cg->default_groups[1] = NULL; lun_cg->default_groups[1] = NULL;
port_stat_grp = &lun->port_stat_grps.stat_group; port_stat_grp = &lun->port_stat_grps.stat_group;
port_stat_grp->default_groups = kzalloc(sizeof(struct config_group) * 3, port_stat_grp->default_groups = kzalloc(sizeof(struct config_group) * 4,
GFP_KERNEL); GFP_KERNEL);
if (!port_stat_grp->default_groups) { if (!port_stat_grp->default_groups) {
pr_err("Unable to allocate port_stat_grp->default_groups\n"); pr_err("Unable to allocate port_stat_grp->default_groups\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册