Skip to content

Commit

Permalink
Staging: hv: Fix a bug in vmbus_match()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Aug 29, 2011
1 parent dad76bf commit e61ee14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/hv/vmbus_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e61ee14

Please sign in to comment.