msm: mdss: Fix potential null pointer dereference
Add NULL checks before accessing potential null pointers. Change-Id: Ibdecaa7664c21a0acf57a3dd2c473f7407520f6b Signed-off-by: Raghavendra Ambadas <rambad@codeaurora.org>
This commit is contained in:
parent
3b8fc0b7a3
commit
41a86ae25e
1 changed files with 9 additions and 0 deletions
|
@ -6375,6 +6375,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