]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: use accessor function for virtio-9p FIDs
authorSasha Levin <levinsasha928@gmail.com>
Wed, 9 May 2012 12:24:47 +0000 (14:24 +0200)
committerPekka Enberg <penberg@kernel.org>
Wed, 9 May 2012 12:26:36 +0000 (15:26 +0300)
commit7cbae16719c0368502070e44e00f02694293c758
treedb383f302da1e2014ab70ce727a6099499e75635
parentefee6ad6b0aa0899ccad0f379b83ce9c3287dad5
kvm tools: use accessor function for virtio-9p FIDs

Since the 9p functions don't know the size of the fid array, they might
request an FID outside of the allowed range. Use an accessor to prevent
that and to hide the internal implementation from them.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/virtio/9p.c