Staging: hv: Fix a bug in vmbus_match()
authorK. Y. Srinivasan <kys@microsoft.com>
Sat, 27 Aug 2011 18:31:34 +0000 (11:31 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 29 Aug 2011 18:05:31 +0000 (11:05 -0700)
The recent checkin that add a private pointer to hv_vmbus_device_id
introduced this bug in vmbus_match; fix it.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/vmbus_drv.c

index be62b6244e391ebabea66887bf1486d160291433..51002c0523a5e43a09917cc80e108bad9929cceb 100644 (file)
@@ -273,7 +273,7 @@ static int vmbus_match(struct device *device, struct device_driver *driver)
 
        for (; !is_null_guid(id_array->guid); id_array++)
                if (!memcmp(&id_array->guid, &hv_dev->dev_type.b,
-                               sizeof(struct hv_vmbus_device_id)))
+                               sizeof(uuid_le)))
                        return 1;
 
        return 0;