summaryrefslogtreecommitdiffstats
path: root/drivers/net/irda/Kconfig
diff options
context:
space:
mode:
authorAlexey Khoroshilov2013-02-16 23:24:37 +0100
committerGreg Kroah-Hartman2013-02-18 20:05:14 +0100
commit9e17df37d710f8998e9cb10a548304fe33d4a5c2 (patch)
tree67e3c53b0015d37f23b76c8f661342b8ea504b26 /drivers/net/irda/Kconfig
parentserial: imx: fix uninitialized variable warning (diff)
downloadkernel-qcow2-linux-9e17df37d710f8998e9cb10a548304fe33d4a5c2.tar.gz
kernel-qcow2-linux-9e17df37d710f8998e9cb10a548304fe33d4a5c2.tar.xz
kernel-qcow2-linux-9e17df37d710f8998e9cb10a548304fe33d4a5c2.zip
tty: mxser: improve error handling in mxser_probe() and mxser_module_init()
1. Currently mxser_probe() and mxser_module_init() ignore errors that can happen in tty_port_register_device(). 2. mxser_module_init() does not deallocate resources allocated in mxser_get_ISA_conf() if mxser_initbrd() failed. The patch adds proper error handling in all the cases. Also it moves free_irq() from mxser_release_ISA_res() to mxser_board_remove(), since it makes mxser_release_ISA_res() a counterpart for mxser_get_ISA_conf(), while free_irq() is relevant to both ISA and PCI boards. 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/net/irda/Kconfig')
0 files changed, 0 insertions, 0 deletions