commit 9147a6b726161649dd8d66fd8e6d6af23ed00ec1
parent a18c75d375eb2acbb53a009d08a8ec30982635e8
Author: Andrew Zaborowski <andrew.zaborowski@intel.com>
Date: Wed, 18 Mar 2020 15:45:24 +0100
frame-xchg: Fix frame_watch_item_remove_by_handler
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/frame-xchg.c b/src/frame-xchg.c
@@ -656,7 +656,8 @@ struct frame_watch_handler_check_info {
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;
if (watch->super.notify != info->handler ||