linux-stable/drivers/tty/serdev
Johan Hovold 7c63838ea5 serdev: ttyport: add missing open() error handling
Add missing error handling for tty-driver open() which may fail (e.g. if
resource allocation fails or if a port is being disconnected).

Note that close() must be called also in case of failed open() and that
the operation sanity check is amended to catch buggy drivers.

Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-10-23 11:24:24 +02:00
..
core.c serdev: Add ACPI support 2017-10-20 14:24:44 +02:00
Kconfig serdev: enable TTY port controller support by default 2017-10-20 14:20:06 +02:00
Makefile
serdev-ttyport.c serdev: ttyport: add missing open() error handling 2017-10-23 11:24:24 +02:00