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

Natsume, Wataru (ADITJ/SWG) wnatsume at jp.adit-jv.com
Sun May 29 22:18:20 EDT 2016


Hello Polrola-san,

Merged. Thank you!

Best Regards,
Wataru Natsume

---
Wataru Natsume / 夏目 亘
Advanced Driver Information Technology
Software Group (ADITJ/SWG)
E-mail: wnatsume at jp.adit-jv.com
Tel: +81-(0)566-61-4551 / Extension 551-43644


-----Original Message-----
From: genivi-ivi-layer-management-bounces at lists.genivi.org [mailto:genivi-ivi-layer-management-bounces at lists.genivi.org] On Behalf Of mateuszx.potrola at intel.com
Sent: Wednesday, May 18, 2016 7:54 PM
To: genivi-ivi-layer-management at lists.genivi.org
Cc: wnatsume at jp.adit-jv.com--in-reply-to=74389179A75C3246997C13E6A03197060A909455.denso.co.jp; ""@ky0exch01.adit-jv.com.denso.co.jp
Subject: [PATCH v2] ivi-controller: do not iterate over empty list in send_surface_add_event


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


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