Skip to contentSkip to conversation

arch: alpha: kernel: typo issue, using '1' instead of '11'

PATCH New Chen Gang 1 participant 1 message May 29, 2013

Subsystems (2)
lore
Share & tools
lore

Chen Gang

author
#0 lore raw

PATCH 1/1 arch: alpha: kernel: typo issue, using '1' instead of '11'

For sending message:

        *(unsigned int *)&cpu->ipc_buffer[0] = len;
        cp1 = (char *) &cpu->ipc_buffer[1];

But for receive message:

                cnt = cpu->ipc_buffer[0] >> 32;
                ...
                       cp1 = (char *) &cpu->ipc_buffer[11];

They are not pairs, it is typo issue of the redundency '1'.

So need use '1' instead of '11'.

---
 arch/alpha/kernel/smp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/alpha/kernel/smp.c +1 -1
index 7b60834..8beb6b2 100644
@@ -264,7 +264,7 @@ recv_secondary_console_msg(void)
 		if (cnt <= 0 || cnt >= 80)
 			strcpy(buf, "<<< BOGUS MSG >>>");
 		else {
-			cp1 = (char *) &cpu->ipc_buffer[11];
+			cp1 = (char *) &cpu->ipc_buffer[1];
 			cp2 = buf;
 			strcpy(cp2, cp1);
 			
Signature · 1 line
1.7.7.6