[PATCH 5.15 103/374] pstore: ram_core: fix possible overflow in persistent_ram_init_ecc()