Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;