[PATCH 5.10 040/509] pstore/ram: Add check for kstrdup