3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 23:09:34 +01:00

frame-xchg: Fix frame_watch_item_remove_by_handler

This commit is contained in:
Andrew Zaborowski 2020-03-18 15:45:24 +01:00 committed by Denis Kenzior
parent a18c75d375
commit 9147a6b726

View File

@ -656,7 +656,8 @@ struct frame_watch_handler_check_info {
static bool frame_watch_item_remove_by_handler(void *data, void *user_data) static bool frame_watch_item_remove_by_handler(void *data, void *user_data)
{ {
struct frame_watch *watch = data; struct frame_watch *watch =
l_container_of(data, struct frame_watch, super);
struct frame_watch_handler_check_info *info = user_data; struct frame_watch_handler_check_info *info = user_data;
if (watch->super.notify != info->handler || if (watch->super.notify != info->handler ||