提交 e61ee14f 编写于 作者: K K. Y. Srinivasan 提交者: 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: NK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: NHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 dad76bf7
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册