OSDN Git Service

virtio: fix feature bit checks
authorCornelia Huck <cornelia.huck@de.ibm.com>
Fri, 12 Dec 2014 09:01:46 +0000 (10:01 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 27 Jan 2015 12:46:17 +0000 (14:46 +0200)
commit91d5c57a2e98845c02cda026f3f6a88cb5e14225
tree52ccf5d6f2821b36bb603c31e989b64d21e61a38
parent71f4be25d476c2865688da1e568257313cc2e511
virtio: fix feature bit checks

Several places check against the feature bit number instead of against
the feature bit. Fix them.

Cc: qemu-stable@nongnu.org
Reported-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/scsi/virtio-scsi.c
hw/virtio/dataplane/vring.c