[PATCH 6.1 066/591] pstore/ram: Add check for kstrdup