mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
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:
parent
dad76bf73f
commit
e61ee14f0e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue