[PATCH 11/11] hvcbeat: fix buffer manipulation

2008-03-17 Thread Ishizaki Kou
This patch fixes a potential bug at drivers/char/hvc_beat.c. - hvc_put_term_char routine will decrement "rest" variable twice, and forget to advance "buf" pointer by "nlen" bytes. This bug was not hit because the output handler in drivers/char/hvc_console.c splits given output into 16 bytes at

Re: [PATCH 11/11] hvcbeat: fix buffer manipulation

2008-03-05 Thread Arnd Bergmann
On Wednesday 05 March 2008, Ishizaki Kou wrote: > This patch fixes a potential bug at drivers/char/hvc_beat.c. >  - hvc_put_term_char routine will decrement "rest" variable twice, >    and forget to advance "buf" pointer by "nlen" bytes. > This bug was not hit because the output handler in > driver

[PATCH 11/11] hvcbeat: fix buffer manipulation

2008-03-05 Thread Ishizaki Kou
This patch fixes a potential bug at drivers/char/hvc_beat.c. - hvc_put_term_char routine will decrement "rest" variable twice, and forget to advance "buf" pointer by "nlen" bytes. This bug was not hit because the output handler in drivers/char/hvc_console.c splits given output into 16 bytes at