|
@@ -2937,7 +2937,7 @@ static int __init target_core_init_configfs(void)
|
|
|
* and ALUA Logical Unit Group and Target Port Group infrastructure.
|
|
|
*/
|
|
|
target_cg = &subsys->su_group;
|
|
|
- target_cg->default_groups = kmalloc(sizeof(struct config_group) * 2,
|
|
|
+ target_cg->default_groups = kmalloc(sizeof(struct config_group *) * 2,
|
|
|
GFP_KERNEL);
|
|
|
if (!target_cg->default_groups) {
|
|
|
pr_err("Unable to allocate target_cg->default_groups\n");
|