[PATCH 6.12 122/154] soc: loongson: loongson2_guts: Add check for devm_kstrdup()