devilhorns pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=b81cafcd7b026dbf56b5898a7578f15e1bab885c
commit b81cafcd7b026dbf56b5898a7578f15e1bab885c Author: Chris Michael <[email protected]> Date: Thu Sep 25 11:36:24 2014 -0400 ecore-drm: Fix adding an input device when we don't get the devpath from Eeze. Summary: If we fail to get a devpath from Eeze for an input device, then we need to error out gracefully and not add a failed input device. @fix Signed-off-by: Chris Michael <[email protected]> --- src/lib/ecore_drm/ecore_drm_inputs.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/ecore_drm/ecore_drm_inputs.c b/src/lib/ecore_drm/ecore_drm_inputs.c index cec6913..bf076df 100644 --- a/src/lib/ecore_drm/ecore_drm_inputs.c +++ b/src/lib/ecore_drm/ecore_drm_inputs.c @@ -168,12 +168,15 @@ _device_add(Ecore_Drm_Input *input, const char *device) goto seat_get_err; data->seat = seat; - data->node = eeze_udev_syspath_get_devpath(device); + if (!(data->node = eeze_udev_syspath_get_devpath(device))) + goto dev_err; _ecore_drm_dbus_device_open(data->node, _cb_device_opened, data); return EINA_TRUE; +dev_err: + free(data); seat_get_err: eina_stringshare_del(wlseat); seat_err: --
