]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Close kernel FD after loading it into memory
authorSasha Levin <levinsasha928@gmail.com>
Sat, 9 Apr 2011 10:38:16 +0000 (13:38 +0300)
committerPekka Enberg <penberg@kernel.org>
Sat, 9 Apr 2011 11:26:23 +0000 (14:26 +0300)
commit48af1841823a96aa85a7b7c91324eebcf800b22f
treec5002099bb91b15aeb173a41b9fae8283902a46b
parentbf60c782ee2b16034f31131149a071c48a732d55
kvm tools: Close kernel FD after loading it into memory

Once the kernel has been loaded into the guest memory, close the FD of the
file.

[ penberg@kernel.org: remove unnecessary fd >= 0 checks ]
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/kvm.c