From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: Pavel Machek <pavel@ucw.cz>, Colin King <colin.king@canonical.com>
Cc: Kevin Hilman <khilman@baylibre.com>,
Ulf Hansson <ulf.hansson@linaro.org>,
Len Brown <len.brown@intel.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] PM / Domains: check for negative return from of_count_phandle_with_args
Date: Tue, 01 Nov 2016 05:48:16 +0100 [thread overview]
Message-ID: <3498199.QxdRYBakzi@vostro.rjw.lan> (raw)
In-Reply-To: <20161026110007.GA23875@amd>
On Wednesday, October 26, 2016 01:00:08 PM Pavel Machek wrote:
>
> --zhXaljGHf11kAtnf
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
> Content-Transfer-Encoding: quoted-printable
>
> On Tue 2016-10-25 11:14:40, Kevin Hilman wrote:
> > Colin King <colin.king@canonical.com> writes:
> >=20
> > > From: Colin Ian King <colin.king@canonical.com>
> > >
> > > The return from of_count_phandle_with_args can be negative, so we
> > > should avoid kcalloc of a negative count of genpd_power_stat structs
> > > by sanity checking if count is zero or less.
> > >
> > > Signed-off-by: Colin Ian King <colin.king@canonical.com>
> >=20
> > Acked-by: Kevin Hilman <khilman@baylibre.com>
>
> Acked-by: Pavel Machek <pavel@ucw.cz>
Applied, thanks!
Rafael
prev parent reply other threads:[~2016-11-01 4:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-25 16:33 Colin King
2016-10-25 18:14 ` Kevin Hilman
2016-10-26 11:00 ` Pavel Machek
2016-11-01 4:48 ` Rafael J. Wysocki [this message]
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=3498199.QxdRYBakzi@vostro.rjw.lan \
--to=rjw@rjwysocki.net \
--cc=colin.king@canonical.com \
--cc=gregkh@linuxfoundation.org \
--cc=khilman@baylibre.com \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=ulf.hansson@linaro.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
all inboxes | Powered by JetHome®