video: fbdev: fbmem: fix pointer reference to null device field
In function do_remove_conflicting_framebuffers, if device is NULL, there will be null pointer reference. The patch add a check to the if expression. Signed-off-by: NZhouyi Zhou <zhouzhouyi@gmail.com> Acked-by: NPaul Menzel <pmenzel@molgen.mpg.de> Signed-off-by: NHelge Deller <deller@gmx.de> Link: https://patchwork.freedesktop.org/patch/msgid/20220210065824.368355-1-zhouzhouyi@gmail.com
Showing
想要评论请 注册 或 登录