From: Daniel Mack <daniel@zonque.org> Date: 2018-06-19 13:13:32
When parsing the video modes from DT properties, make sure to zero out
memory befor 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)
Cc: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Daniel Mack <daniel@zonque.org>
---
v2: use kcalloc() instead of open-coding the same through
kmalloc_array(__GFP_ZERO)
drivers/video/fbdev/pxafb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
From: Daniel Mack <daniel@zonque.org> Date: 2018-06-19 20:12:57
On Tuesday, June 19, 2018 10:11 PM, Robert Jarzmik wrote:
Daniel Mack [off-list ref] writes:
quoted
When parsing the video modes from DT properties, make sure to zero out
memory befor using it. This is important because not all fields in the mode
s/befor/before/
Yeah, seen this too after sending. Should I resend, or can this be
amended when applying?
> This taken care of ...
> Reviewed-by: Robert Jarzmik [off-list ref]
Thanks,
Daniel