[PATCH 6.6 060/583] pstore: ram_core: fix possible overflow in persistent_ram_init_ecc()