# Re: \[PATCH 1/4\] video: fbdev: pxafb: clear allocated memory for video modes

- From: Bartlomiej Zolnierkiewicz \<hidden\>
- Date: 2018-07-24 15:01:37 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2018/07/9142590
- Thread: https://ratatoskr.run/linux-fbdev/2018/06/13466867/t.md

```text
On Sunday, June 24, 2018 05:38:14 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>

Patch queued for 4.19, thanks.

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics

```
