All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Sitsofe Wheeler <sitsofe@yahoo.com>
Cc: "fio@vger.kernel.org" <fio@vger.kernel.org>
Subject: Re: [PATCH] cpuid: Null terminate x86 CPU string.
Date: Thu, 13 Feb 2014 09:18:16 -0700	[thread overview]
Message-ID: <20140213161816.GE10926@kernel.dk> (raw)
In-Reply-To: <20140213060742.GA1847@sucs.org>

On Thu, Feb 13 2014, Sitsofe Wheeler wrote:
> Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
> ---
>  arch/arch-x86-common.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arch-x86-common.h b/arch/arch-x86-common.h
> index 179572d..26a14a8 100644
> --- a/arch/arch-x86-common.h
> +++ b/arch/arch-x86-common.h
> @@ -60,6 +60,7 @@ static inline int arch_init(char *envp[])
>  			 (unsigned int *) &str[8],
>  			 (unsigned int *) &str[4]);
>  
> +	str[11] = '\0';
>  	if (!strcmp(str, "GenuineIntel"))
>  		tsc_reliable = arch_init_intel(level);
>  	else if (!strcmp(str, "AuthenticAMD"))

Applied, thanks.

-- 
Jens Axboe



  reply	other threads:[~2014-02-13 16:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-13  6:07 [PATCH] cpuid: Null terminate x86 CPU string Sitsofe Wheeler
2014-02-13 16:18 ` Jens Axboe [this message]
2014-02-14 15:48   ` Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140213161816.GE10926@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=fio@vger.kernel.org \
    --cc=sitsofe@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.