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

Commit 165e2cad authored by Jiri Kosina's avatar Jiri Kosina
Browse files

HID: steam: add missing fields in client initialization



->product, ->version and ->type fields in the client struct were left out
unitialized from the hid device fields; fix that.

Reported-by: default avatarRodrigo Rivas Costa <rodrigorivascosta@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent f8271979
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -651,6 +651,9 @@ static struct hid_device *steam_create_client_hid(struct hid_device *hdev)
	client_hdev->bus = hdev->bus;
	client_hdev->vendor = hdev->vendor;
	client_hdev->product = hdev->product;
	client_hdev->version = hdev->version;
	client_hdev->type = hdev->type;
	client_hdev->country = hdev->country;
	strlcpy(client_hdev->name, hdev->name,
			sizeof(client_hdev->name));
	strlcpy(client_hdev->phys, hdev->phys,