hog-lib: Fix not reading report_map of instances
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 13 May 2022 01:01:03 +0000 (18:01 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
commitafcd2808a23ed3ab849af42af2d2eaafefae92b2
tree559cd78a62ad39666a7f151d3d45caa5f544d3b6
parent5e8e1a0fcacfd685ef310e58a870582144c12a8f
hog-lib: Fix not reading report_map of instances

If there is multiple instances the gatt_db of the instances was not
initialized causing the report_map_attr to be NULL which prevents the
report_map to be read and uhid device to be created.

Fixes: https://github.com/bluez/bluez/issues/298
Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
profiles/input/hog-lib.c