Commit 22167913 authored by Simon Que's avatar Simon Que Committed by Hari Kanigeri

SYSLINK: notify - ducatidrv frees event listener

In the function notify_ducatidrv_unregister_event, it finds the event listener
and deletes the list element containing that listener, but did not free the
listener object itself, which was kmalloced in notify_ducatidrv_register_event.
The listener is now being freed.
Signed-off-by: default avatarSimon Que <sque@ti.com>
parent 5aba61be
......@@ -874,6 +874,7 @@ int notify_ducatidrv_unregister_event(
goto func_end;
}
list_del((struct list_head *)&(listener->element));
kfree(listener);
event_list[event_no].event_handler_count--;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment