Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3f0ed57b authored by Andy Grover's avatar Andy Grover Committed by Nicholas Bellinger
Browse files

target: Allocate more room for port default groups



See target_stat_setup_port_default_groups, we need a 4 element array.

Signed-off-by: default avatarAndy Grover <agrover@redhat.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 38becbea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -906,7 +906,7 @@ static struct config_group *target_fabric_make_lun(
	lun_cg->default_groups[1] = NULL;

	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);
	if (!port_stat_grp->default_groups) {
		pr_err("Unable to allocate port_stat_grp->default_groups\n");