virtio: fix feature bit checks
commit451b9e2d4c65ad20cbd4247adc82cd69c8ebce2c
authorCornelia Huck <cornelia.huck@de.ibm.com>
Fri, 12 Dec 2014 09:01:46 +0000 (12 10:01 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 23 Feb 2015 00:34:26 +0000 (22 18:34 -0600)
tree8eb7aa1d32f13bcb20446a846cd502384b63c325
parent0d093159b4a48e24350cb7092b3b62ec4402f447
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>
(cherry picked from commit 91d5c57a2e98845c02cda026f3f6a88cb5e14225)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/scsi/virtio-scsi.c
hw/virtio/dataplane/vring.c