summaryrefslogtreecommitdiffstats
path: root/kernel/spinlock.c
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2013-04-07 21:46:47 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-04-08 20:30:04 +0200
commit1b581f173992cded311f810346378f763a1f1e5d (patch)
tree84ef80845e97f17fcc4daeb3338721807910c28c /kernel/spinlock.c
parentRevert "tty/8250_pnp: serial port detection regression since v3.7" (diff)
downloadlinux-1b581f173992cded311f810346378f763a1f1e5d.tar.xz
linux-1b581f173992cded311f810346378f763a1f1e5d.zip
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>
Diffstat (limited to 'kernel/spinlock.c')
0 files changed, 0 insertions, 0 deletions