Commit e61ee14f authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Greg Kroah-Hartman

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: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent dad76bf7
...@@ -273,7 +273,7 @@ static int vmbus_match(struct device *device, struct device_driver *driver) ...@@ -273,7 +273,7 @@ static int vmbus_match(struct device *device, struct device_driver *driver)
for (; !is_null_guid(id_array->guid); id_array++) for (; !is_null_guid(id_array->guid); id_array++)
if (!memcmp(&id_array->guid, &hv_dev->dev_type.b, if (!memcmp(&id_array->guid, &hv_dev->dev_type.b,
sizeof(struct hv_vmbus_device_id))) sizeof(uuid_le)))
return 1; return 1;
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment