Rajeev Nandan e8c4aa25c5 disp: msm: dsi: fix bl->raw_bd NULL pointer dereference
In trusted vm, a stub function is used for the panel_ops.bl_register,
hence the backlight_device bl->raw_bd used for WLED backlight type
remains uninitialized.

If the panel backlight is WLED, this can cause a NULL pointer
dereference in TVM during dsi_panel_bl_handoff().

Add a check before dereferencing bl->raw_bd.

Change-Id: Ieb40781263b4318313fd29b339122ae6c59b1590
Signed-off-by: Rajeev Nandan <quic_rajeevny@quicinc.com>
2024-05-09 01:45:08 +05:30
2021-02-17 09:14:03 -08:00
Description
No description provided
184 MiB
Languages
C 98.7%
C++ 0.9%
Makefile 0.3%
Starlark 0.1%