[PATCH 5.10 010/299] ACPI: custom_method: fix potential use-after-free issue