Skip to content

Commit 1aee505

Browse files
mike-travisKAGA-KOKO
authored andcommitted
x86/platform/uv: Remove spaces from OEM IDs
Testing shows that trailing spaces caused problems with the OEM_ID and the OEM_TABLE_ID. One being that the OEM_ID would not string compare correctly. Another the OEM_ID and OEM_TABLE_ID would be concatenated in the printout. Remove any trailing spaces. Fixes: 1e61f5a ("Add and decode Arch Type in UVsystab") Signed-off-by: Mike Travis <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 1aec69a commit 1aee505

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/x86/kernel/apic/x2apic_uv_x.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,9 @@ static void __init uv_stringify(int len, char *to, char *from)
290290
{
291291
/* Relies on 'to' being NULL chars so result will be NULL terminated */
292292
strncpy(to, from, len-1);
293+
294+
/* Trim trailing spaces */
295+
(void)strim(to);
293296
}
294297

295298
/* Find UV arch type entry in UVsystab */

0 commit comments

Comments
 (0)