From: Alexey Khoroshilov Date: Sun, 7 Apr 2013 19:46:47 +0000 (+0400) Subject: tty: mxser: fix cycle termination condition in mxser_probe() and mxser_module_init() X-Git-Tag: v3.9-rc7~23^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b581f173992cded311f810346378f763a1f1e5d;p=pandora-kernel.git 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 Acked-by: Jiri Slaby Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed