]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target/i386: Clean up error cases for vmsr_read_thread_stat()
authorAnthony Harivel <aharivel@redhat.com>
Fri, 26 Jul 2024 10:26:32 +0000 (12:26 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 31 Jul 2024 11:13:31 +0000 (13:13 +0200)
commit6e623af30130fce6e94c717176f3e3c9f2742b7d
tree1c4944981946ef9f2df4c9fc2e56876a8570f937
parent5997fbdfaca3e69062c2b706d6228c7c6e133c03
target/i386: Clean up error cases for vmsr_read_thread_stat()

Fix leaking memory of file handle in case of error
Erase unused "pid = -1"
Add clearer error_report

Should fix Coverity CID 1558557.

Signed-off-by: Anthony Harivel <aharivel@redhat.com>
Link: https://lore.kernel.org/r/20240726102632.1324432-3-aharivel@redhat.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/kvm/vmsr_energy.c