From: Pavel Machek <pavel@ucw.cz>
To: Kevin Hilman <khilman@baylibre.com>
Cc: Colin King <colin.king@canonical.com>,
"Rafael J . Wysocki" <rjw@rjwysocki.net>,
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: Wed, 26 Oct 2016 13:00:08 +0200 [thread overview]
Message-ID: <20161026110007.GA23875@amd> (raw)
In-Reply-To: <7htwc0thwv.fsf@baylibre.com>
[-- Attachment #1: Type: text/plain, Size: 657 bytes --]
On Tue 2016-10-25 11:14:40, Kevin Hilman wrote:
> Colin King <colin.king@canonical.com> writes:
>
> > 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>
>
> Acked-by: Kevin Hilman <khilman@baylibre.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
next prev parent reply other threads:[~2016-10-26 11:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-25 16:33 [PATCH] PM / Domains: check for negative return from of_count_phandle_with_args Colin King
2016-10-25 18:14 ` Kevin Hilman
2016-10-26 11:00 ` Pavel Machek [this message]
2016-11-01 4:48 ` Rafael J. Wysocki
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=20161026110007.GA23875@amd \
--to=pavel@ucw.cz \
--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=rjw@rjwysocki.net \
--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;
as well as URLs for NNTP newsgroup(s).