]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Release memory allocated during virtio block initialization
authorPrasad Joshi <prasadjoshi124@gmail.com>
Sun, 22 May 2011 16:24:07 +0000 (17:24 +0100)
committerPekka Enberg <penberg@kernel.org>
Sun, 22 May 2011 20:06:37 +0000 (23:06 +0300)
commita8adaa363de7d212aa306494f58eb6809ee2855e
treea68e43403b84c48039e052be46888a7e8b99d577
parent4f84f6724f7866e57e782db7dd0d05b654753afe
kvm tools: Release memory allocated during virtio block initialization

Add a new function virtio_blk__delete() goes through array of block
devices and releases memory allocated for block device.

Signed-off-by: Prasad Joshi <prasadjoshi124@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/include/kvm/virtio-blk.h
tools/kvm/kvm-run.c
tools/kvm/virtio/blk.c