All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Mack <daniel@zonque.org>
To: linux-fbdev@vger.kernel.org
Subject: Re: [PATCH 1/4] video: fbdev: pxafb: clear allocated memory for video modes
Date: Mon, 09 Jul 2018 05:12:50 +0000	[thread overview]
Message-ID: <0403832b-545a-be1d-a0e8-fee4f4177578@zonque.org> (raw)
In-Reply-To: <20180624153817.24387-1-daniel@zonque.org>

Hi Bartlomiej,

Should I resend with Robert's Reviewed-bys again? I'd like to get this 
merged for 4.19 if possible.


Thanks,
Daniel


On Sunday, June 24, 2018 05:38 PM, Daniel Mack wrote:
> When parsing the video modes from DT properties, make sure to zero out
> memory before using it. This is important because not all fields in the mode
> struct are explicitly initialized, even though they are used later on.
> 
> Fixes: 420a488278e86 (video: fbdev: pxafb: initial devicetree conversion)
> Reviewed-by: Robert Jarzmik <robert.jarzmik@free.fr>
> Signed-off-by: Daniel Mack <daniel@zonque.org>
> ---
>   drivers/video/fbdev/pxafb.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/video/fbdev/pxafb.c b/drivers/video/fbdev/pxafb.c
> index 76722a59f55e..dfe382e68287 100644
> --- a/drivers/video/fbdev/pxafb.c
> +++ b/drivers/video/fbdev/pxafb.c
> @@ -2128,8 +2128,8 @@ static int of_get_pxafb_display(struct device *dev, struct device_node *disp,
>   		return -EINVAL;
>   
>   	ret = -ENOMEM;
> -	info->modes = kmalloc_array(timings->num_timings,
> -				    sizeof(info->modes[0]), GFP_KERNEL);
> +	info->modes = kcalloc(timings->num_timings, sizeof(info->modes[0]),
> +			      GFP_KERNEL);
>   	if (!info->modes)
>   		goto out;
>   	info->num_modes = timings->num_timings;
> 


  parent reply	other threads:[~2018-07-09  5:12 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20180624153827epcas3p37952be3cd47f8a63e7083fc88e83fe1e@epcas3p3.samsung.com>
2018-06-24 15:38 ` [PATCH 1/4] video: fbdev: pxafb: clear allocated memory for video modes Daniel Mack
     [not found]   ` <CGME20180624153828epcas4p43ae0bc9085756fae520e8aa8542b3ea4@epcas4p4.samsung.com>
2018-06-24 15:38     ` [PATCH 2/4] video: fbdev: pxafb: switch to devm_* API Daniel Mack
2018-06-25 21:56       ` Robert Jarzmik
2018-07-24 15:01       ` Bartlomiej Zolnierkiewicz
2018-07-24 15:01         ` Bartlomiej Zolnierkiewicz
     [not found]   ` <CGME20180624153830epcas4p37cb6f12227eff56e4f94722fcd240455@epcas4p3.samsung.com>
2018-06-24 15:38     ` [PATCH 3/4] video: fbdev: pxafb: handle errors from pxafb_init_fbinfo() correctly Daniel Mack
2018-06-25 22:02       ` Robert Jarzmik
2018-07-24 15:02       ` Bartlomiej Zolnierkiewicz
2018-07-24 15:02         ` Bartlomiej Zolnierkiewicz
     [not found]   ` <CGME20180624153829epcas4p1effd3ba1319737e82f2a63cc1499fc85@epcas4p1.samsung.com>
2018-06-24 15:38     ` [PATCH 4/4] video: fbdev: pxafb: Add support for lcd-supply regulator Daniel Mack
2018-06-26  8:27       ` Robert Jarzmik
2018-06-26  8:37       ` Daniel Mack
2018-06-26  9:04       ` Robert Jarzmik
2018-07-24 15:02       ` Bartlomiej Zolnierkiewicz
2018-07-24 15:02         ` Bartlomiej Zolnierkiewicz
2018-07-09  5:12   ` Daniel Mack [this message]
2018-07-24 15:03     ` [PATCH 1/4] video: fbdev: pxafb: clear allocated memory for video modes Bartlomiej Zolnierkiewicz
2018-07-24 15:03       ` Bartlomiej Zolnierkiewicz
2018-07-24 15:11       ` Daniel Mack
2018-07-24 15:11         ` Daniel Mack
2018-07-24 15:01   ` Bartlomiej Zolnierkiewicz
2018-07-24 15:01     ` Bartlomiej Zolnierkiewicz

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=0403832b-545a-be1d-a0e8-fee4f4177578@zonque.org \
    --to=daniel@zonque.org \
    --cc=linux-fbdev@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.