Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174873
b: refs/heads/master
c: b4f1b67
h: refs/heads/master
i:
  174871: fbf86b9
v: v3
  • Loading branch information
Roel Kluin authored and Jason Wessel committed Dec 11, 2009
1 parent 34cf75a commit a82c04f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 84667d4849b0e0a939a76f9f62d45fa3b4d59692
refs/heads/master: b4f1b67be99d6eda8f2f252460905858ace871ef
6 changes: 6 additions & 0 deletions trunk/drivers/misc/kgdbts.c
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,12 @@ static int run_simple_test(int is_get_char, int chr)

/* End of packet == #XX so look for the '#' */
if (put_buf_cnt > 3 && put_buf[put_buf_cnt - 3] == '#') {
if (put_buf_cnt >= BUFMAX) {
eprintk("kgdbts: ERROR: put buffer overflow on"
" '%s' line %i\n", ts.name, ts.idx);
put_buf_cnt = 0;
return 0;
}
put_buf[put_buf_cnt] = '\0';
v2printk("put%i: %s\n", ts.idx, put_buf);
/* Trigger check here */
Expand Down

0 comments on commit a82c04f

Please sign in to comment.