[PATCH 6.4 102/800] pstore/ram: Add check for kstrdup