All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] frame-watch: Actually unregister removed groups
@ 2020-02-04 11:23 Andrew Zaborowski
  2020-02-04 11:23 ` [PATCH 2/2] frame-watch: Fix an l_queue_foreach_remove call Andrew Zaborowski
  2020-02-04 16:48 ` [PATCH 1/2] frame-watch: Actually unregister removed groups Denis Kenzior
  0 siblings, 2 replies; 3+ messages in thread
From: Andrew Zaborowski @ 2020-02-04 11:23 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 642 bytes --]

Actually close the sockets for removed groups an free resources
---
 src/frame-xchg.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/frame-xchg.c b/src/frame-xchg.c
index 0a6c1fc6..4c8b4a9f 100644
--- a/src/frame-xchg.c
+++ b/src/frame-xchg.c
@@ -362,8 +362,10 @@ static bool frame_watch_group_remove_wdev(void *data, void *user_data)
 	struct watch_group *group = data;
 	const uint64_t *wdev_id = user_data;
 
-	if (group->wdev_id == *wdev_id)
+	if (group->wdev_id == *wdev_id) {
+		frame_watch_group_destroy(group);
 		return true;
+	}
 
 	if (group->id != 0)
 		return false;
-- 
2.20.1

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

* [PATCH 2/2] frame-watch: Fix an l_queue_foreach_remove call
  2020-02-04 11:23 [PATCH 1/2] frame-watch: Actually unregister removed groups Andrew Zaborowski
@ 2020-02-04 11:23 ` Andrew Zaborowski
  2020-02-04 16:48 ` [PATCH 1/2] frame-watch: Actually unregister removed groups Denis Kenzior
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Zaborowski @ 2020-02-04 11:23 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 642 bytes --]

A pointer to the wdev_id is expected in this call inside
frame_watch_group_remove_wdev instead of a pointer to the pointer.
---
 src/frame-xchg.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/frame-xchg.c b/src/frame-xchg.c
index 4c8b4a9f..31d9c229 100644
--- a/src/frame-xchg.c
+++ b/src/frame-xchg.c
@@ -375,8 +375,7 @@ static bool frame_watch_group_remove_wdev(void *data, void *user_data)
 	 * internals.
 	 */
 	l_queue_foreach_remove(group->watches.items,
-				frame_watch_item_remove_wdev,
-				&wdev_id);
+				frame_watch_item_remove_wdev, user_data);
 	return false;
 }
 
-- 
2.20.1

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

* Re: [PATCH 1/2] frame-watch: Actually unregister removed groups
  2020-02-04 11:23 [PATCH 1/2] frame-watch: Actually unregister removed groups Andrew Zaborowski
  2020-02-04 11:23 ` [PATCH 2/2] frame-watch: Fix an l_queue_foreach_remove call Andrew Zaborowski
@ 2020-02-04 16:48 ` Denis Kenzior
  1 sibling, 0 replies; 3+ messages in thread
From: Denis Kenzior @ 2020-02-04 16:48 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 265 bytes --]

Hi Andrew,

On 2/4/20 5:23 AM, Andrew Zaborowski wrote:
> Actually close the sockets for removed groups an free resources
> ---
>   src/frame-xchg.c | 4 +++-
>   1 file changed, 3 insertions(+), 1 deletion(-)
> 

Both applied, thanks.

Regards,
-Denis

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

end of thread, other threads:[~2020-02-04 16:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-04 11:23 [PATCH 1/2] frame-watch: Actually unregister removed groups Andrew Zaborowski
2020-02-04 11:23 ` [PATCH 2/2] frame-watch: Fix an l_queue_foreach_remove call Andrew Zaborowski
2020-02-04 16:48 ` [PATCH 1/2] frame-watch: Actually unregister removed groups Denis Kenzior

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.