From: Jiri Kosina Date: Tue, 15 May 2018 08:58:31 +0000 (+0200) Subject: HID: steam: add missing fields in client initialization X-Git-Tag: v5.15~8670^2~6^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=165e2cad5a74bddbe6ca2c42fc5d2816f5e67795;p=platform%2Fkernel%2Flinux-starfive.git 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: Rodrigo Rivas Costa Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/hid-steam.c b/drivers/hid/hid-steam.c index af7ebb6..cb86cc8 100644 --- a/drivers/hid/hid-steam.c +++ b/drivers/hid/hid-steam.c @@ -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,