Skip to contentSkip to conversation

Fix device_match_pattern function

PATCH In review Santiago Carot-Nemesio 1 participant 2 messages May 20, 2010 HID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix device_match_pattern function

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(-)
src/device.c +1 -1
index 6ba1612..d0768ce 100644
@@ -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;
Signature · 1 line
1.6.3.3
#1 lore raw

Sorry,
I was wrong about the mailing list. Please, discard this patch here.

2010/5/20 Santiago Carot-Nemesio <[email protected]>:

Quoted 22 lines

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(-)
src/device.c +1 -2
index 6ba1612..d0768ce 100644
@@ -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;
--
Quoted 3 lines

1.6.3.3

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html