mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-09 00:12:36 +01:00
watchlist: Pass item pointer to match function
In WATCHLIST_NOTIFY_MATCHES pass pointer to the item instead of item->notify_data to free item->notify_data to be the final watch user's user_data. This is also what netdev expects.
This commit is contained in:
parent
70518fad5f
commit
f2c4969fc9
@ -83,7 +83,7 @@ void __watchlist_prune_stale(struct watchlist *watchlist);
|
||||
struct watchlist_item *item = entry->data; \
|
||||
type t = item->notify; \
|
||||
\
|
||||
if (!match(item->notify_data, match_data)) \
|
||||
if (!match(item, match_data)) \
|
||||
continue; \
|
||||
\
|
||||
t(args, item->notify_data); \
|
||||
|
Loading…
Reference in New Issue
Block a user