diff options
| -rw-r--r-- | drivers/target/target_core_configfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_configfs.c b/drivers/target/target_core_configfs.c index 02fd55d3a76e..f6fc258b9d40 100644 --- a/drivers/target/target_core_configfs.c +++ b/drivers/target/target_core_configfs.c | |||
| @@ -2496,7 +2496,7 @@ static struct config_group *target_core_make_subdev( | |||
| 2496 | 2496 | ||
| 2497 | dev_cg = &dev->dev_group; | 2497 | dev_cg = &dev->dev_group; |
| 2498 | 2498 | ||
| 2499 | dev_cg->default_groups = kzalloc(sizeof(struct config_group *) * 7, | 2499 | dev_cg->default_groups = kzalloc(sizeof(struct config_group *) * 6, |
| 2500 | GFP_KERNEL); | 2500 | GFP_KERNEL); |
| 2501 | if (!dev_cg->default_groups) | 2501 | if (!dev_cg->default_groups) |
| 2502 | goto out_free_device; | 2502 | goto out_free_device; |
