lantiq: make patches apply
[openwrt/staging/lynxis.git] / target / linux / lantiq / patches-4.19 / 0101-find_active_root.patch
index 73361c87faba0fbc1b8180a85dacfcdcbc9b8c08..f48b5b7c65f49be7abdc6295d5128ba01723c3ca 100644 (file)
@@ -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;