tty: mxser: fix cycle termination condition in mxser_probe() and mxser_module_init()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sun, 7 Apr 2013 19:46:47 +0000 (23:46 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Apr 2013 18:30:04 +0000 (11:30 -0700)
commit1b581f173992cded311f810346378f763a1f1e5d
tree84ef80845e97f17fcc4daeb3338721807910c28c
parentc12f9ea28e9fbe7b1f4cefc953bee33298370683
tty: mxser: fix cycle termination condition in mxser_probe() and mxser_module_init()

There is a bug in resources deallocation code in mxser_probe() and
mxser_module_init().  As soon as variable 'i' is unsigned int, cycle
termination condition i >= 0 is always true.  The patch fixes the issue.

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/mxser.c
This page took 0.045663 seconds and 5 git commands to generate.