From: Pawel Moll <pawel.moll@arm.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: [PATCH 1/2] bus: arm-ccn: Check memory allocation failure
Date: Tue, 29 Aug 2017 08:49:03 +0000 [thread overview]
Message-ID: <1503996543.3460.4.camel@arm.com> (raw)
In-Reply-To: <20170827100650.13236-1-christophe.jaillet@wanadoo.fr>
On Sun, 2017-08-27 at 12:06 +0200, Christophe JAILLET wrote:
> Check memory allocation failures and return -ENOMEM in such cases
>
> This avoids a potential NULL pointer dereference.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
This is an obvious bug, thanks for spotting and fixing it! I'll include
this patch next time I send a pull request for CCN fixes.
May I also ask how have you noticed it? Some automated tool or just
manual code inspection?
Regards
Pawel
next prev parent reply other threads:[~2017-08-29 8:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-27 10:06 [PATCH 1/2] bus: arm-ccn: Check memory allocation failure Christophe JAILLET
2017-08-28 20:57 ` Scott Branden
2017-08-29 8:49 ` Pawel Moll [this message]
2017-08-29 18:50 ` Christophe JAILLET
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=1503996543.3460.4.camel@arm.com \
--to=pawel.moll@arm.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