[PATCH 5.4 001/108] efi: capsule-loader: Fix use-after-free in efi_capsule_write