All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix device_match_pattern function
@ 2010-05-20 10:09 Santiago Carot-Nemesio
  2010-05-20 12:52 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 8+ messages in thread
From: Santiago Carot-Nemesio @ 2010-05-20 10:09 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Santiago Carot-Nemesio

This patch fixes a problem adding uuids to list provided when a
driver is probed. Without this patch the same uuids were added
more than once to list and if two or more uuids were in the
same class id list only the first one was included repeatedly
---
 src/device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/device.c b/src/device.c
index 6ba1612..d0768ce 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1053,7 +1053,7 @@ static GSList *device_match_pattern(struct btd_device *device,
 			continue;
 
 		if (record_has_uuid(rec, match_uuid))
-			uuids = g_slist_append(uuids, profile_uuid);
+			uuids = g_slist_append(uuids, match_uuid);
 	}
 
 	return uuids;
-- 
1.6.3.3


^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [PATCH] Fix device_match_pattern function
@ 2010-05-20  9:55 Santiago Carot-Nemesio
  2010-05-20 10:12 ` Santiago Carot
  0 siblings, 1 reply; 8+ messages in thread
From: Santiago Carot-Nemesio @ 2010-05-20  9:55 UTC (permalink / raw)
  To: linux-input; +Cc: Santiago Carot-Nemesio

This patch fixes a problem adding uuids to list provided when a
driver is probed. Without this patch the same uuids were added
more than once to list and if two or more uuids were in the
same class id list only the first one was included repeatedly
---
 src/device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/device.c b/src/device.c
index 6ba1612..d0768ce 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1053,7 +1053,7 @@ static GSList *device_match_pattern(struct btd_device *device,
 			continue;
 
 		if (record_has_uuid(rec, match_uuid))
-			uuids = g_slist_append(uuids, profile_uuid);
+			uuids = g_slist_append(uuids, match_uuid);
 	}
 
 	return uuids;
-- 
1.6.3.3


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

end of thread, other threads:[~2010-05-22  8:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-20 10:09 [PATCH] Fix device_match_pattern function Santiago Carot-Nemesio
2010-05-20 12:52 ` Luiz Augusto von Dentz
2010-05-20 13:00   ` Luiz Augusto von Dentz
2010-05-20 14:04     ` Santiago Carot-Nemesio
2010-05-21 12:17       ` Santiago Carot-Nemesio
2010-05-22  8:45         ` Luiz Augusto von Dentz
  -- strict thread matches above, loose matches on Subject: below --
2010-05-20  9:55 Santiago Carot-Nemesio
2010-05-20 10:12 ` Santiago Carot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.