Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH] Fix a crash when creating a device from storage
@ 2011-05-09 17:55 Vinicius Costa Gomes
  2011-05-14 23:31 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: Vinicius Costa Gomes @ 2011-05-09 17:55 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Vinicius Costa Gomes

The list "services" is just a list of the object paths of the
registered services that a device has. When we want to store
the primary services information we need to store the "primaries"
list, that contain all the primary services information.
---
 src/device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/device.c b/src/device.c
index b0a6542..9b8591b 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1567,7 +1567,7 @@ static void store_services(struct btd_device *device)
 {
 	struct btd_adapter *adapter = device->adapter;
 	bdaddr_t dba, sba;
-	char *str = primary_list_to_string(device->services);
+	char *str = primary_list_to_string(device->primaries);
 
 	adapter_get_address(adapter, &sba);
 	device_get_address(device, &dba);
-- 
1.7.4.3


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

end of thread, other threads:[~2011-05-14 23:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-09 17:55 [PATCH] Fix a crash when creating a device from storage Vinicius Costa Gomes
2011-05-14 23:31 ` Johan Hedberg

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