[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH RFC] x86/cpu: fix vendor string for Shanghai CPU



>>> On 04.04.19 at 16:11, <wei.liu2@xxxxxxxxxx> wrote:
> --- a/xen/arch/x86/cpu/shanghai.c
> +++ b/xen/arch/x86/cpu/shanghai.c
> @@ -16,7 +16,7 @@ static void init_shanghai(struct cpuinfo_x86 *c)
>  }
>  
>  static const struct cpu_dev shanghai_cpu_dev = {
> -    .c_vendor   = "  Shang",
> +    .c_vendor   = "Shanghai",

But this makes it a non-nul terminated string: The structure
member is an array of just 8 characters. 

Jan



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.