浏览代码

disp: msm: dp: fix null check in atomic_check

Fix an invalid pointer check on input parameters.

Change-Id: I899e19e578d4d337e49da9084875bfd1917efe59
Signed-off-by: Steve Cohen <[email protected]>
Steve Cohen 5 年之前
父节点
当前提交
1470b1605c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      msm/dp/dp_drm.c

+ 1 - 1
msm/dp/dp_drm.c

@@ -504,7 +504,7 @@ int dp_connector_atomic_check(struct drm_connector *connector,
 	struct drm_connector_state *old_state;
 	struct drm_connector_state *c_state;
 
-	if (!connector || !display || a_state)
+	if (!connector || !display || !a_state)
 		return -EINVAL;
 
 	c_state = drm_atomic_get_new_connector_state(a_state, connector);