Skip to content
Commit 4178bfa3 authored by Peter Suti's avatar Peter Suti Committed by Greg Kroah-Hartman
Browse files

staging: fbtft: core: set smem_len before fb_deferred_io_init call



commit 81e87888 upstream.

The fbtft_framebuffer_alloc() calls fb_deferred_io_init() before
initializing info->fix.smem_len.  It is set to zero by the
framebuffer_alloc() function.  It will trigger a WARN_ON() at the
start of fb_deferred_io_init() and the function will not do anything.

Fixes: 856082f0 ("fbdev: defio: fix the pagelist corruption")
Signed-off-by: default avatarPeter Suti <peter.suti@streamunlimited.com>
Link: https://lore.kernel.org/r/20220727073550.1491126-1-peter.suti@streamunlimited.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9e25a005
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment