Commit-ID: be53ad971ea995b5d7e842aadc55e3e39a02ba5a Gitweb: http://git.kernel.org/tip/be53ad971ea995b5d7e842aadc55e3e39a02ba5a Author: Aneesh Kumar K.V <aneesh.kumar@xxxxxxxxxxxxxxxxxx> AuthorDate: Tue, 9 Aug 2011 20:43:46 +0530 Committer: Pekka Enberg <penberg@xxxxxxxxxx> CommitDate: Tue, 9 Aug 2011 18:16:11 +0300 kvm tools, 9p: handler should be called in case of not supported operation Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@xxxxxxxxxxxxxxxxxx> Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx> --- tools/kvm/virtio/9p.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/kvm/virtio/9p.c b/tools/kvm/virtio/9p.c index 8bf702d..365c08e 100644 --- a/tools/kvm/virtio/9p.c +++ b/tools/kvm/virtio/9p.c @@ -709,12 +709,11 @@ static bool virtio_p9_do_io_request(struct kvm *kvm, struct p9_dev_job *job) cmd = virtio_p9_get_cmd(p9pdu); if (cmd >= ARRAY_SIZE(virtio_9p_handler) || - !virtio_9p_handler[cmd]) { + !virtio_9p_handler[cmd]) handler = virtio_p9_eopnotsupp; - } else { + else handler = virtio_9p_handler[cmd]; - handler(p9dev, p9pdu, &len); - } + handler(p9dev, p9pdu, &len); virt_queue__set_used_elem(vq, p9pdu->queue_head, len); free(p9pdu); return true; -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
![]() |