[PATCH openEuler-5.10 14/16] efi: capsule-loader: Fix use-after-free in efi_capsule_write