HID: steam: add missing fields in client initialization
authorJiri Kosina <jkosina@suse.cz>
Tue, 15 May 2018 08:58:31 +0000 (10:58 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 15 May 2018 08:58:31 +0000 (10:58 +0200)
->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 <rodrigorivascosta@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-steam.c

index af7ebb6..cb86cc8 100644 (file)
@@ -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,