Unverified Commit 5af85baa authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!7573 pstore: ram_core: fix possible overflow in persistent_ram_init_ecc()

parents 57081601 2e4a7253
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -189,7 +189,7 @@ static int persistent_ram_init_ecc(struct persistent_ram_zone *prz,
{
	int numerr;
	struct persistent_ram_buffer *buffer = prz->buffer;
	int ecc_blocks;
	size_t ecc_blocks;
	size_t ecc_total;

	if (!ecc_info || !ecc_info->ecc_size)