From: Robert Jarzmik <robert.jarzmik@free.fr>
To: Tomi Valkeinen <tomi.valkeinen@ti.com>,
Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Julia Lawall <julia.lawall@lip6.fr>
Subject: Re: [PATCH] video: fbdev: pxafb: fix out of memory error path
Date: Sun, 10 Jan 2016 20:27:56 +0000 [thread overview]
Message-ID: <87io31dvsj.fsf@belgarion.home> (raw)
In-Reply-To: <1450527271-21841-1-git-send-email-robert.jarzmik@free.fr> (Robert Jarzmik's message of "Sat, 19 Dec 2015 13:14:31 +0100")
Robert Jarzmik <robert.jarzmik@free.fr> writes:
> As seen by Julia, the initial allocation memory is not checked anymore
> after commit "video: fbdev: pxafb: initial devicetree conversion".
> Introduce back the removed test.
>
> Reported-by: Julia Lawall <julia.lawall@lip6.fr>
> Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
> ---
> drivers/video/fbdev/pxafb.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/video/fbdev/pxafb.c b/drivers/video/fbdev/pxafb.c
> index 8588dd683105..54666424a720 100644
> --- a/drivers/video/fbdev/pxafb.c
> +++ b/drivers/video/fbdev/pxafb.c
> @@ -2252,6 +2252,8 @@ static int pxafb_probe(struct platform_device *dev)
> ret = -ENOMEM;
> pdata = dev_get_platdata(&dev->dev);
> inf = devm_kmalloc(&dev->dev, sizeof(*inf), GFP_KERNEL);
> + if (!inf)
> + goto failed;
>
> if (pdata) {
> *inf = *pdata;
Tomi, Jean-Christophe,
Can you carry out this fix please ?
Cheers.
--
Robert
next prev parent reply other threads:[~2016-01-10 20:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-19 12:14 [PATCH] video: fbdev: pxafb: fix out of memory error path Robert Jarzmik
2016-01-10 20:27 ` Robert Jarzmik [this message]
2016-01-11 11:51 ` Tomi Valkeinen
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=87io31dvsj.fsf@belgarion.home \
--to=robert.jarzmik@free.fr \
--cc=julia.lawall@lip6.fr \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=plagnioj@jcrosoft.com \
--cc=tomi.valkeinen@ti.com \
/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).