diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2015-10-24 02:27:43 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-06 23:27:46 -0800 |
commit | b1209983d2c012be8d253ed118f9281ed9f46af6 (patch) | |
tree | 20524ddad2ad10fcf54ccc9266469bedfb32e366 /drivers/tty/n_hdlc.c | |
parent | 1051937d465665e3360ea7d9a3d2adfd86f47dd4 (diff) | |
download | linux-b1209983d2c012be8d253ed118f9281ed9f46af6.tar.bz2 |
tty: synclinkmp: do not ignore errors in probe()
synclinkmp_init_one() ignores all errors and does not release
all resources if something fails.
The patch adds returned code to device_init() and add_device()
and proper error handling.
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/n_hdlc.c')
0 files changed, 0 insertions, 0 deletions