disp: msm: sde: add null check for pingpong hw block
Add null check before accessing pingpong hw block allocated during mode set to physical encoder. Change-Id: Ic464e7c7087f280b1198f6b7485bc0763322c532 Signed-off-by: Jayaprakash <jmadiset@codeaurora.org>
This commit is contained in:
@@ -777,8 +777,8 @@ void sde_encoder_helper_update_intf_cfg(
|
||||
struct sde_hw_intf_cfg_v1 *intf_cfg;
|
||||
enum sde_3d_blend_mode mode_3d;
|
||||
|
||||
if (!phys_enc) {
|
||||
SDE_ERROR("invalid arg, encoder %d\n", !phys_enc);
|
||||
if (!phys_enc || !phys_enc->hw_pp) {
|
||||
SDE_ERROR("invalid args, encoder %d\n", !phys_enc);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Viittaa uudesa ongelmassa
Block a user