mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-05-01 21:37:22 +02: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; \
|
struct watchlist_item *item = entry->data; \
|
||||||
type t = item->notify; \
|
type t = item->notify; \
|
||||||
\
|
\
|
||||||
if (!match(item->notify_data, match_data)) \
|
if (!match(item, match_data)) \
|
||||||
continue; \
|
continue; \
|
||||||
\
|
\
|
||||||
t(args, item->notify_data); \
|
t(args, item->notify_data); \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user