[PATCH openEuler-1.0-LTS 05/13] ACPI: custom_method: fix potential use-after-free issue