From: Frans Klaver Date: Thu, 6 Nov 2014 20:10:17 +0000 (+0100) Subject: serial: 8250_core: actually limit char reads to max_count X-Git-Tag: omap-for-v3.19/fixes-rc1~86^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c904375d4b15122c225c1073fd7a56bd541b0ce5;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed