dect
/
linux-2.6
Archived
13
0
Fork 0

Staging: hv: Fix a bug in vmbus_match()

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>
This commit is contained in:
K. Y. Srinivasan 2011-08-27 11:31:34 -07:00 committed by Greg Kroah-Hartman
parent dad76bf73f
commit e61ee14f0e
1 changed files with 1 additions and 1 deletions

View 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;