Change DD_LIST_FOREACH to DD_LIST_FOREACH_SAFE to protect crash 68/208268/1 accepted/tizen_5.0_unified accepted/tizen/5.0/unified/20190621.094636 submit/tizen_5.0/20190621.025949
authorlokilee73 <changjoo.lee@samsung.com>
Fri, 21 Jun 2019 02:36:45 +0000 (11:36 +0900)
committerlokilee73 <changjoo.lee@samsung.com>
Fri, 21 Jun 2019 02:37:40 +0000 (11:37 +0900)
commitf2721fc7457766d345ecdba5359d93cd3173c6e6
tree223e538b64d7038332183ca23c1be5e6fba90dc2
parent576a4fc826876e10e6beda8a0c292a75d83f8b7b
Change DD_LIST_FOREACH to DD_LIST_FOREACH_SAFE to protect crash

While running DD_LIST_FOREACH, one item in the list can be removed.
At that time, removed item can be refered in DD_LIST_FOREACH.
And it can cause crash.

Change-Id: I6c789e45c674583eea631eda22c4ff1ca6473ca5
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
src/callback.c
src/haptic.c