[PATCH 6.6 029/603] pstore/platform: Add check for kstrdup