Skip to content

Commit af17f57

Browse files
authored
Merge pull request torvalds#346 from OtherCrashOverride/n1-vop-nullref
ODROID-N1: VOP - Don't dereference null pointers.
2 parents 13ea0d5 + 1ae6434 commit af17f57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/rockchip/rockchip_drm_vop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
VOP_REG_SUPPORT(vop, win->phy->name)
6262

6363
#define VOP_WIN_SCL_EXT_SUPPORT(vop, win, name) \
64-
(win->phy->scl->ext && \
64+
(win && win->phy && win->phy->scl && win->phy->scl->ext && \
6565
VOP_REG_SUPPORT(vop, win->phy->scl->ext->name))
6666

6767
#define VOP_CTRL_SUPPORT(vop, name) \

0 commit comments

Comments
 (0)