]> git.baikalelectronics.ru Git - kernel.git/commit
video: fbdev: fbmem: fix pointer reference to null device field
authorZhouyi Zhou <zhouzhouyi@gmail.com>
Thu, 10 Feb 2022 06:58:24 +0000 (14:58 +0800)
committerHelge Deller <deller@gmx.de>
Thu, 14 Apr 2022 20:01:24 +0000 (22:01 +0200)
commit279dbf333023a6bebce62fd29f577519cf6f678f
treeab3dfced4ae3a181d6f97fbc9c80896b9bfbe790
parentbc94d9620635328353cb05c92070d050c9e2b072
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: Zhouyi Zhou <zhouzhouyi@gmail.com>
Acked-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Helge Deller <deller@gmx.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220210065824.368355-1-zhouzhouyi@gmail.com
drivers/video/fbdev/core/fbmem.c