From: Andy Grover Date: Wed, 27 Nov 2013 22:57:56 +0000 (-0800) Subject: target: Allocate more room for port default groups X-Git-Tag: v3.14-rc1~17^2~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3f0ed57b26ddd6358b4ab2b9bde652fd683fe02d;p=kernel%2Fkernel-generic.git target: Allocate more room for port default groups See target_stat_setup_port_default_groups, we need a 4 element array. Signed-off-by: Andy Grover Signed-off-by: Nicholas Bellinger --- diff --git a/drivers/target/target_core_fabric_configfs.c b/drivers/target/target_core_fabric_configfs.c index dae2ad6..fdadc4d 100644 --- a/drivers/target/target_core_fabric_configfs.c +++ b/drivers/target/target_core_fabric_configfs.c @@ -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");