Age | Commit message (Collapse) | Author |
|
Events callback can call events_unwatch_fd(), resulting in the event
being deleted from the events list. Use list_for_each_entry_safe() to
walk the list properly, and make sure the event isn't accessed after
it's callback function returns.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Otherwise events received but not yet dispatched are dispatched and can
call hangs in ioctls as the pipeline has likely been stopped.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Set the done flag to false before starting the loop in order to make it
possible for the caller to restart the loop.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|