On Mon, Apr 04, 2022 at 09:44:02PM +0200, Thomas Zimmermann wrote:
> OF framebuffers do not have an underlying device in the Linux
> device hierarchy. Do a regular unregister call instead of hot
> unplugging such a non-existing device. Fixes a NULL dereference.
> An example error message on ppc64le is shown below.
> 

<snip>

> 
> Tested with 5.17 on qemu ppc64le emulation.
> 
> Signed-off-by: Thomas Zimmermann <[email protected]>
> Fixes: 27599aacbaef ("fbdev: Hot-unplug firmware fb devices on forced 
> removal")
> Reported-by: Sudip Mukherjee <[email protected]>
> Cc: Zack Rusin <[email protected]>
> Cc: Javier Martinez Canillas <[email protected]>
> Cc: Hans de Goede <[email protected]>
> Cc: [email protected] # v5.11+
> Cc: Helge Deller <[email protected]>
> Cc: Daniel Vetter <[email protected]>
> Cc: Sam Ravnborg <[email protected]>
> Cc: Zheyu Ma <[email protected]>
> Cc: Xiyu Yang <[email protected]>
> Cc: Zhen Lei <[email protected]>
> Cc: Matthew Wilcox <[email protected]>
> Cc: Alex Deucher <[email protected]>
> Cc: Tetsuo Handa <[email protected]>
> Cc: Guenter Roeck <[email protected]>
> Cc: [email protected]
> Cc: [email protected]
> Link: https://lore.kernel.org/all/YkHXO6LGHAN0p1pq@debian/ # [1]
> Reviewed-by: Daniel Vetter <[email protected]>
> ---

Tested-by: Sudip Mukherjee <[email protected]>

--
Regards
Sudip

Reply via email to