All of lore.kernel.org
 help / color / mirror / Atom feed
From: mark gross <mgross@linux.intel.com>
To: "Limonciello, Mario" <Mario.Limonciello@dell.com>
Cc: Divya Bharathi <divya27392@gmail.com>,
	"dvhart@infradead.org" <dvhart@infradead.org>,
	LKML <linux-kernel@vger.kernel.org>,
	"platform-driver-x86@vger.kernel.org" 
	<platform-driver-x86@vger.kernel.org>,
	"Bharathi, Divya" <Divya.Bharathi@Dell.com>,
	Hans de Goede <hdegoede@redhat.com>,
	Andy Shevchenko <andy.shevchenko@gmail.com>,
	"Ksr, Prasanth" <Prasanth.Ksr@dell.com>
Subject: Re: [PATCH v5] Introduce support for Systems Management Driver over WMI for Dell Systems
Date: Thu, 1 Oct 2020 12:02:48 -0700	[thread overview]
Message-ID: <20201001190248.GB25055@mtg-dev.jf.intel.com> (raw)
In-Reply-To: <DM6PR19MB2636FB3D94EBA95B7CE0DE54FA330@DM6PR19MB2636.namprd19.prod.outlook.com>

On Wed, Sep 30, 2020 at 09:02:38PM +0000, Limonciello, Mario wrote:
> > > +		possible_values:	A file that can be read to obtain the possible
> > > +					values of the <attr>. Values are separated using
> > > +					semi-colon (``;``).
> > why not use set notation from math classes assuming intergers?  i.e.
> > (a, b)  all integers beween a and b but not including a or b (open set)
> > or
> > [a, b] all integerger betwen a and b including and b?  (closed set)
> > 
> > Anyway its ambiguous if the the extremes are included in the set of possible
> > values as written.
> > 
> 
> Enumeration attributes mean that there are fixed values, specifically not integers.
> Integers are in the "integer" type and explained below.
> 
> An example value that would be seen here is possible_values:
> 
> Enabled;Disabled;
I'm ok with this

> 
> > > +
> > > +	security_area_size = calculate_security_buffer();
> > > +	buffer_size = security_area_size + integer_area_size;
> > > +	buffer = kzalloc(buffer_size, GFP_KERNEL);
> > > +	if (!buffer)
> > > +		return -ENOMEM;
> > if you hit this error return I think you will leak the wmi_priv.mutex lock.
> > I think this is a bug.
> 
> Yes, thanks this is a great finding.
> Team will fix in v6 after we have Hans' feedback for v5.
Yay! It makes me feel useful to catch stuff like this.

thanks!

--mark

  parent reply	other threads:[~2020-10-01 19:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-29  2:55 [PATCH v5] Introduce support for Systems Management Driver over WMI for Dell Systems Divya Bharathi
2020-09-29 10:30 ` Hans de Goede
2020-09-30  0:23 ` mark gross
2020-09-30 21:02   ` Limonciello, Mario
2020-10-01  9:26     ` Hans de Goede
2020-10-01 19:04       ` mark gross
2020-10-01 19:02     ` mark gross [this message]
2020-10-01 18:20 ` Hans de Goede
2020-10-01 19:37   ` Limonciello, Mario
2020-10-09  7:46     ` Hans de Goede
2020-10-06  8:37   ` Bharathi, Divya
2020-10-09  7:56     ` Hans de Goede
2020-10-06  8:46   ` Bharathi, Divya
2020-10-09  7:58     ` Hans de Goede

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=20201001190248.GB25055@mtg-dev.jf.intel.com \
    --to=mgross@linux.intel.com \
    --cc=Divya.Bharathi@Dell.com \
    --cc=Mario.Limonciello@dell.com \
    --cc=Prasanth.Ksr@dell.com \
    --cc=andy.shevchenko@gmail.com \
    --cc=divya27392@gmail.com \
    --cc=dvhart@infradead.org \
    --cc=hdegoede@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=platform-driver-x86@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 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.