Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH BlueZ] hog: Fix segfault when discovering descriptors
@ 2012-09-14 13:56 João Paulo Rechi Vita
  2012-09-20 11:14 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: João Paulo Rechi Vita @ 2012-09-14 13:56 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: João Paulo Rechi Vita

Invalid memory was being accessed when discovering the External Report
Reference descriptor.
---
 profiles/input/hog_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/profiles/input/hog_device.c b/profiles/input/hog_device.c
index 664c52b..03af931 100644
--- a/profiles/input/hog_device.c
+++ b/profiles/input/hog_device.c
@@ -479,7 +479,7 @@ static void char_discovered_cb(GSList *chars, guint8 status, gpointer user_data)
 		} else if (bt_uuid_cmp(&uuid, &report_map_uuid) == 0) {
 			gatt_read_char(hogdev->attrib, chr->value_handle, 0,
 						report_map_read_cb, hogdev);
-			discover_descriptor(hogdev->attrib, chr, next, NULL);
+			discover_descriptor(hogdev->attrib, chr, next, hogdev);
 		} else if (bt_uuid_cmp(&uuid, &info_uuid) == 0)
 			info_handle = chr->value_handle;
 		else if (bt_uuid_cmp(&uuid, &proto_mode_uuid) == 0)
-- 
1.7.11.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-20 11:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-14 13:56 [PATCH BlueZ] hog: Fix segfault when discovering descriptors João Paulo Rechi Vita
2012-09-20 11:14 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox