VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Kees Cook <keescook@chromium.org> 2018-06-12 14:03:40 -0700 committer: Kees Cook <keescook@chromium.org> 2018-06-12 16:19:22 -0700 commit: 6396bb221514d2876fd6dc0aa2a1f240d99b37bb parent: 6da2ec56059c3c7a7e5f729e6349e74ace1e5c57
Commit Summary:
treewide: kzalloc() -> kcalloc()
Diffstat:
1 file changed, 2 insertions, 2 deletions
diff --git a/drivers/opp/ti-opp-supply.c b/drivers/opp/ti-opp-supply.c
index 370eff3acd8a..9e5a9a3112c9 100644
--- a/drivers/opp/ti-opp-supply.c
+++ b/drivers/opp/ti-opp-supply.c
@@ -122,8 +122,8 @@ static int _store_optimized_voltages(struct device *dev,
 		goto out;
 	}
 
-	table = kzalloc(sizeof(*data->vdd_table) *
-				  data->num_vdd_table, GFP_KERNEL);
+	table = kcalloc(data->num_vdd_table, sizeof(*data->vdd_table),
+			GFP_KERNEL);
 	if (!table) {
 		ret = -ENOMEM;
 		goto out;