[PATCH v2] ivi-controller: do not iterate over empty list in send_surface_add_event

mateuszx.potrola at intel.com mateuszx.potrola at intel.com
Wed May 18 07:11:22 EDT 2016

Iterating over empty list will modify first value passed to wl_list_for_each,
but that won't be valid list entry, which in case of send_surface_add_even
leads to crash.

V2 change:
Use break instead of continue

Signed-off-by: Mateusz Polrola <mateuszx.potrola at intel.com>
 weston-ivi-shell/src/ivi-controller-impl.c | 4 ++++
 1 file changed, 4 insertions(+)

Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Christian Lamprechter
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ivi-controller-do-not-iterate-over-empty-list-in-sen.patch
Type: text/x-patch
Size: 673 bytes
Desc: not available
URL: <http://lists.genivi.org/pipermail/genivi-ivi-layer-management_lists.genivi.org/attachments/20160518/d910cf41/attachment.patch>

More information about the genivi-ivi-layer-management mailing list