git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
of: fix PCI bus match for PCIe slots
[pandora-kernel.git]
/
drivers
/
char
/
ttyprintk.c
diff --git
a/drivers/char/ttyprintk.c
b/drivers/char/ttyprintk.c
index
eedd547
..
5936691
100644
(file)
--- a/
drivers/char/ttyprintk.c
+++ b/
drivers/char/ttyprintk.c
@@
-67,7
+67,7
@@
static int tpk_printk(const unsigned char *buf, int count)
tmp[tpk_curr + 1] = '\0';
printk(KERN_INFO "%s%s", tpk_tag, tmp);
tpk_curr = 0;
- if (buf[i + 1] == '\n')
+ if (
(i + 1) < count &&
buf[i + 1] == '\n')
i++;
break;
case '\n':