Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d4846381 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "fdt: Update CRC check for rng-seed"

parents cbf74dec 1321d114
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1235,6 +1235,10 @@ int __init early_init_dt_scan_chosen(unsigned long node, const char *uname,

		/* try to clear seed so it won't be found. */
		fdt_nop_property(initial_boot_params, node, "rng-seed");

		/* update CRC check value */
		of_fdt_crc32 = crc32_be(~0, initial_boot_params,
				fdt_totalsize(initial_boot_params));
	}

	/* break now */
@@ -1339,6 +1343,8 @@ bool __init early_init_dt_verify(void *params)

	/* Setup flat device-tree pointer */
	initial_boot_params = params;
	of_fdt_crc32 = crc32_be(~0, initial_boot_params,
				fdt_totalsize(initial_boot_params));
	return true;
}

@@ -1364,8 +1370,6 @@ bool __init early_init_dt_scan(void *params)
		return false;

	early_init_dt_scan_nodes();
	of_fdt_crc32 = crc32_be(~0, initial_boot_params,
				fdt_totalsize(initial_boot_params));
	return true;
}