Merge "msm: mdss: Fix potential null pointer dereference"
This commit is contained in:
commit
afbf8abea5
1 changed files with 9 additions and 0 deletions
|
@ -6382,6 +6382,15 @@ void mdss_mdp_footswitch_ctrl_handler(bool on)
|
|||
static void mdss_mdp_signal_retire_fence(struct msm_fb_data_type *mfd,
|
||||
int retire_cnt)
|
||||
{
|
||||
struct mdss_overlay_private *mdp5_data;
|
||||
|
||||
if (!mfd)
|
||||
return;
|
||||
|
||||
mdp5_data = mfd_to_mdp5_data(mfd);
|
||||
if (!mdp5_data->ctl || !mdp5_data->ctl->ops.remove_vsync_handler)
|
||||
return;
|
||||
|
||||
__vsync_retire_signal(mfd, retire_cnt);
|
||||
pr_debug("Signaled (%d) pending retire fence\n", retire_cnt);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue