Description of problem: In restore_template_fmt, when kstrdup fails, a non-NULL value will still be returned,, which causes a NULL pointer access in template_desc_init_fields. Version-Release number of selected component (if applicable): 5.10 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
merged: https://gitee.com/anolis/cloud-kernel/pulls/1200