]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
kvm: irqchip: fix memory leak
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Wed, 2 Sep 2015 07:03:53 +0000 (12:33 +0530)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 Sep 2015 09:16:41 +0000 (11:16 +0200)
commitba60c41ae392b473a1897faa0b8739fcb8759d69
treefb8a2bf4cde5d8de4ca4cf3781e7659d002a91c9
parent3dfe6a507353f3253c8136734d94bfdb459fa04d
kvm: irqchip: fix memory leak

We were taking the exit path after checking ue->flags and return value
of setup_routing_entry(), but 'e' was not freed incase of a failure.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/irqchip.c