forked from enlightenment/efl
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 <cp.michael@samsung.com>
This commit is contained in:
parent
fc40591f11
commit
b81cafcd7b
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue