diff options
author | Andy Grover <agrover@redhat.com> | 2013-11-27 17:57:56 -0500 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-12-16 15:42:05 -0500 |
commit | 3f0ed57b26ddd6358b4ab2b9bde652fd683fe02d (patch) | |
tree | 5870d37a496c75a3c9656673ee695e2fcadac698 /drivers/target | |
parent | 38becbeadfc9318867d98c9d792b40997d5cb264 (diff) |
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 <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_fabric_configfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_fabric_configfs.c b/drivers/target/target_core_fabric_configfs.c index dae2ad6a669e..fdadc4d6259a 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( | |||
906 | lun_cg->default_groups[1] = NULL; | 906 | lun_cg->default_groups[1] = NULL; |
907 | 907 | ||
908 | port_stat_grp = &lun->port_stat_grps.stat_group; | 908 | port_stat_grp = &lun->port_stat_grps.stat_group; |
909 | port_stat_grp->default_groups = kzalloc(sizeof(struct config_group) * 3, | 909 | port_stat_grp->default_groups = kzalloc(sizeof(struct config_group) * 4, |
910 | GFP_KERNEL); | 910 | GFP_KERNEL); |
911 | if (!port_stat_grp->default_groups) { | 911 | if (!port_stat_grp->default_groups) { |
912 | pr_err("Unable to allocate port_stat_grp->default_groups\n"); | 912 | pr_err("Unable to allocate port_stat_grp->default_groups\n"); |