瀏覽代碼

Merge "disp: msm: dsi: fix bl->raw_bd NULL pointer dereference"

qctecmdr 1 年之前
父節點
當前提交
7affe06826
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      msm/dsi/dsi_panel.c

+ 1 - 1
msm/dsi/dsi_panel.c

@@ -670,7 +670,7 @@ static u32 dsi_panel_get_brightness(struct dsi_backlight_config *bl)
 	switch (bl->type) {
 	case DSI_BACKLIGHT_WLED:
 		/* Try to query the backlight level from the backlight device */
-		if (bd->ops && bd->ops->get_brightness)
+		if (bd && bd->ops && bd->ops->get_brightness)
 			cur_bl_level = bd->ops->get_brightness(bd);
 		break;
 	case DSI_BACKLIGHT_DCS: