virtio: fix id_matching for virtio drivers
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 26 May 2009 13:46:09 +0000 (15:46 +0200)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 12 Jun 2009 12:46:40 +0000 (21:46 +0930)
commitc89e80168ba1ed37627fe03116b0cf8474dcb7e0
tree3314d284cca77dc81913877d1cf58838186e7e85
parent594de1dd6449f79c99e1ba4577ea0e4e06e2b405
virtio: fix id_matching for virtio drivers

This bug never appeared, since all current virtio drivers use
VIRTIO_DEV_ANY_ID for the vendor field. If a real vendor would be used,
the check in virtio_id_match is wrong - it returns 0 if
id->vendor == dev->id.vendor.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/virtio/virtio.c