From: Changyeon Lee Date: Fri, 24 Apr 2020 03:09:09 +0000 (+0900) Subject: e_comp_wl_rsm: fix dereference null X-Git-Tag: submit/tizen/20200424.090401~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e037a42a8a127ea8a3a5ea5eb97ebb4cf4f0ce3d;p=platform%2Fupstream%2Fenlightenment.git e_comp_wl_rsm: fix dereference null Change-Id: Ifaacc271f54626a2ff869943f36335ee1a97e327 --- diff --git a/src/bin/e_comp_wl_rsm.c b/src/bin/e_comp_wl_rsm.c index 2f7a39d28b..7e88421d37 100644 --- a/src/bin/e_comp_wl_rsm.c +++ b/src/bin/e_comp_wl_rsm.c @@ -2349,7 +2349,7 @@ _remote_manager_cb_surface_create(struct wl_client *client, if (version >= TIZEN_REMOTE_SURFACE_CHANGED_BUFFER_SINCE_VERSION) { - if (ec->comp_data->sub.data) + if ((ec->comp_data) && (ec->comp_data->sub.data)) { ERR("Subsurface could not be source client"); goto fail; @@ -2513,7 +2513,7 @@ _remote_manager_cb_surface_create_with_wl_surface(struct wl_client *client, if (version >= TIZEN_REMOTE_SURFACE_CHANGED_BUFFER_SINCE_VERSION) { - if (provider_ec->comp_data->sub.data) + if ((provider_ec->comp_data) && (provider_ec->comp_data->sub.data)) { ERR("Subsurface could not be source client"); goto fail;