Commit 18cb7eec authored by Anton Blanchard's avatar Anton Blanchard Committed by Linus Torvalds

[PATCH] ppc64: another udbg fix

udbg_read would lock up if ppc_md.udbg_putc didnt exist.  Just return 0 and
dont lock up instead.
Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 00fc398b
......@@ -229,7 +229,8 @@ udbg_read(char *buf, int buflen) {
char c, *p = buf;
int i;
if (!ppc_md.udbg_putc)
for (;;); /* stop here for cpuctl */
return 0;
for (i = 0; i < buflen; ++i) {
do {
c = ppc_md.udbg_getc();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment