summaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2018-05-15 10:58:31 +0200
committerJiri Kosina <jkosina@suse.cz>2018-05-15 10:58:31 +0200
commit165e2cad5a74bddbe6ca2c42fc5d2816f5e67795 (patch)
tree443acf07b9604c4b2dba49cd7af6f7ee3151fec8 /drivers/hid
parentf82719790751742be02142a6fa3ff5c62c52a6ae (diff)
downloadop-kernel-dev-165e2cad5a74bddbe6ca2c42fc5d2816f5e67795.zip
op-kernel-dev-165e2cad5a74bddbe6ca2c42fc5d2816f5e67795.tar.gz
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.c3
1 files changed, 3 insertions, 0 deletions
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,
OpenPOWER on IntegriCloud