aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/patches-4.19/0101-find_active_root.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/lantiq/patches-4.19/0101-find_active_root.patch')
-rw-r--r--target/linux/lantiq/patches-4.19/0101-find_active_root.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/lantiq/patches-4.19/0101-find_active_root.patch b/target/linux/lantiq/patches-4.19/0101-find_active_root.patch
index 73361c87fa..f48b5b7c65 100644
--- a/target/linux/lantiq/patches-4.19/0101-find_active_root.patch
+++ b/target/linux/lantiq/patches-4.19/0101-find_active_root.patch
@@ -52,9 +52,9 @@
@@ -72,7 +105,9 @@ static int parse_fixed_partitions(struct
return 0;
- parts = kzalloc(nr_parts * sizeof(*parts), GFP_KERNEL);
+ parts = kcalloc(nr_parts, sizeof(*parts), GFP_KERNEL);
- if (!parts)
-+ part_nodes = kzalloc(nr_parts * sizeof(*part_nodes), GFP_KERNEL);
++ part_nodes = kcalloc(nr_parts, sizeof(*part_nodes), GFP_KERNEL);
+
+ if (!parts || !part_nodes)
return -ENOMEM;