ecore-drm: close fd handle if _ecore_drm_tty_setup() is failed in ecore_drm_tty_open().
Summary: added code to close fd handle and clear data. @fix Test Plan: N/A Reviewers: gwanglim, devilhorns Reviewed By: devilhorns Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1701
This commit is contained in:
parent
fe4bb3901c
commit
2f47d48d76
|
@ -227,7 +227,11 @@ ecore_drm_tty_open(Ecore_Drm_Device *dev, const char *name)
|
|||
|
||||
/* FIXME */
|
||||
if (!_ecore_drm_tty_setup(dev))
|
||||
return EINA_FALSE;
|
||||
{
|
||||
close(dev->tty.fd);
|
||||
dev->tty.fd = -1;
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
||||
/* setup handler for signals */
|
||||
dev->tty.event_hdlr =
|
||||
|
|
Loading…
Reference in New Issue