Skip to content
Commit 050dfc09 authored by Sergey Organov's avatar Sergey Organov Committed by Greg Kroah-Hartman
Browse files

tty: serial_core: fix error code returned by uart_register_driver()



uart_register_driver() returned -ENOMEM on any error, even when
tty_register_driver() call returned another one, such as -EBUSY.

Signed-off-by: default avatarSergey Organov <sorganov@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bdbd0a7f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment