commit | b1209983d2c012be8d253ed118f9281ed9f46af6 | [log] [tgz] |
---|---|---|
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | Sat Oct 24 02:27:43 2015 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat Feb 06 23:27:46 2016 -0800 |
tree | 20524ddad2ad10fcf54ccc9266469bedfb32e366 | |
parent | 1051937d465665e3360ea7d9a3d2adfd86f47dd4 [diff] |
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>