diff options
author | Jiri Kosina <jkosina@suse.cz> | 2018-05-15 10:58:31 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2018-05-15 10:58:31 +0200 |
commit | 165e2cad5a74bddbe6ca2c42fc5d2816f5e67795 (patch) | |
tree | 443acf07b9604c4b2dba49cd7af6f7ee3151fec8 /drivers/hid | |
parent | f82719790751742be02142a6fa3ff5c62c52a6ae (diff) |
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 <rodrigorivascosta@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-steam.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/hid/hid-steam.c b/drivers/hid/hid-steam.c index af7ebb618867..cb86cc834201 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, |