summaryrefslogtreecommitdiff
path: root/drivers/hsi/hsi_boardinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hsi/hsi_boardinfo.c')
-rw-r--r--drivers/hsi/hsi_boardinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hsi/hsi_boardinfo.c b/drivers/hsi/hsi_boardinfo.c
index e56bc6da5f98..e381cb4c962e 100644
--- a/drivers/hsi/hsi_boardinfo.c
+++ b/drivers/hsi/hsi_boardinfo.c
@@ -49,7 +49,7 @@ int __init hsi_register_board_info(struct hsi_board_info const *info,
{
struct hsi_cl_info *cl_info;
- cl_info = kzalloc(sizeof(*cl_info) * len, GFP_KERNEL);
+ cl_info = kcalloc(len, sizeof(*cl_info), GFP_KERNEL);
if (!cl_info)
return -ENOMEM;