[openEuler-1.0-LTS] pstore: ram_core: fix incorrect success return when vmap() fails