commit | c904375d4b15122c225c1073fd7a56bd541b0ce5 | [log] [tgz] |
---|---|---|
author | Frans Klaver <frans.klaver@xsens.com> | Thu Nov 06 21:10:17 2014 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Nov 06 15:01:03 2014 -0800 |
tree | c552144cfd34a05428db130e6ceffe2431ec78a5 | |
parent | 8a8ae62f8296760a2a1eee7009a1444c327603e0 [diff] |
serial: 8250_core: actually limit char reads to max_count In serial8250_rx_chars(), max_count is set to 256. Due to the post-decrement operator used in the while() condition, the maximum number of iterations actually 257. This is not a problem, but it is mildly surprising if you're debugging. Use pre-decrement instead. Signed-off-by: Frans Klaver <frans.klaver@xsens.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>