[PATCH 6.1 017/379] pstore/platform: Add check for kstrdup