]> Pileus Git - ~andy/linux/blobdiff - drivers/target/target_core_fabric_configfs.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending
[~andy/linux] / drivers / target / target_core_fabric_configfs.c
index dae2ad6a669e277d9c95c67098c20cc233dbede6..7de9f0475d0552e2b10f58ffa227083336659a2c 100644 (file)
@@ -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");