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
..
2017-09-07 10:15:40 -07:00
2017-07-30 07:35:27 -07:00
2017-07-30 07:35:28 -07:00
2017-10-09 09:05:05 +02:00
2017-09-05 10:30:48 -07:00
2017-07-03 20:04:16 -07:00