Unverified Commit 414ed346 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

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

parents c648bb60 49ff0a0f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -190,7 +190,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)