From: Vinod Koul <vinod.koul@intel.com>
To: LABBE Corentin <clabbe.montjoie@gmail.com>
Cc: dan.j.williams@intel.com, dmaengine@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] dmaengine: img-mdc: fix a possible NULL dereference
Date: Mon, 22 Aug 2016 11:58:51 +0530 [thread overview]
Message-ID: <20160822062851.GO2890@localhost> (raw)
In-Reply-To: <1471337058-15372-1-git-send-email-clabbe.montjoie@gmail.com>
On Tue, Aug 16, 2016 at 10:44:18AM +0200, LABBE Corentin wrote:
> of_match_device could return NULL, and so cause a NULL pointer
> dereference later at line 850:
> mdma->soc = match->data;
>
> For fixing this problem, we use of_device_get_match_data(), this will
> simplify the code a little by using a standard function for
> getting the match data.
>
> Reported-by: coverity (CID 1324134)
The reported-by tags expects an email ID. I have modfied this to freetext
and applied
--
~Vinod
prev parent reply other threads:[~2016-08-22 6:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-16 8:44 [PATCH] dmaengine: img-mdc: fix a possible NULL dereference LABBE Corentin
2016-08-22 6:28 ` Vinod Koul [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=20160822062851.GO2890@localhost \
--to=vinod.koul@intel.com \
--cc=clabbe.montjoie@gmail.com \
--cc=dan.j.williams@intel.com \
--cc=dmaengine@vger.kernel.org \
--cc=linux-kernel@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