[PATCH 0/1] KVM: selftests: kvm_vm_elf_load() and elfhdr_get() should close fd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



kvm_vm_elf_load() and elfhdr_get() open one file each, but they
never close the opened file descriptor.  Fix those two functions
to close the file descriptor.

This patch is the same as the one included in the patch series [1],
with minor updates to the commit log (including adding Reviewed-bys
I got).

[1] https://lore.kernel.org/linux-arm-kernel/20220217034947.180935-1-reijiw@xxxxxxxxxx/

Reiji Watanabe (1):
  KVM: selftests: kvm_vm_elf_load() and elfhdr_get() should close fd

 tools/testing/selftests/kvm/lib/elf.c | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.39.0.314.g84b9a713c41-goog




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux