public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@oracle.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: [bug report] x86/resctrl: Bring cbm_validate() into the resource structure
Date: Wed, 28 Nov 2018 19:23:27 +0000	[thread overview]
Message-ID: <20181128192327.GD3095@unbuntlaptop> (raw)
In-Reply-To: <20181128111326.lwlqngnwmdslnbs2@kili.mountain>

On Wed, Nov 28, 2018 at 03:21:22PM +0000, Moger, Babu wrote:
> Copying Boris,
> 
> Hi Dan, The following patch should help. Can you please confirm.
> 
> diff --git a/arch/x86/kernel/cpu/resctrl/ctrlmondata.c
> b/arch/x86/kernel/cpu/resctrl/ctrlmondata.c
> index 286c03bb14a7..5a1b544795cd 100644
> --- a/arch/x86/kernel/cpu/resctrl/ctrlmondata.c
> +++ b/arch/x86/kernel/cpu/resctrl/ctrlmondata.c
> @@ -201,7 +201,7 @@ int parse_cbm(struct rdt_parse_data *data, struct
> rdt_resource *r,
>               struct rdt_domain *d)
>  {
>         struct rdtgroup *rdtgrp = data->rdtgrp;
> -       u32 cbm_val;
> +       u32 cbm_val = 0;
> 
>         if (d->have_new_ctrl) {
>                 rdt_last_cmd_printf("Duplicate domain %d\n", d->id);
> 

That obviously silences the uninitialized variable warning...  You know
the code better than I do, so presumably it is correct as well.  :)

regards,
dan carpenter

  parent reply	other threads:[~2018-11-28 19:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-28 11:13 [bug report] x86/resctrl: Bring cbm_validate() into the resource structure Dan Carpenter
2018-11-28 15:21 ` Moger, Babu
2018-11-28 19:23 ` Dan Carpenter [this message]
2018-11-28 19:28 ` Moger, Babu

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=20181128192327.GD3095@unbuntlaptop \
    --to=dan.carpenter@oracle.com \
    --cc=kernel-janitors@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox