mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
Merge "disp: msm: dp: fix potential NULL pointer dereference"
This commit is contained in:
commit
2e0cf27277
1 changed files with 3 additions and 2 deletions
|
|
@ -581,14 +581,15 @@ static void dp_display_notify_hdcp_status_cb(void *ptr,
|
|||
enum sde_hdcp_state state)
|
||||
{
|
||||
struct dp_display_private *dp = ptr;
|
||||
SDE_EVT32_EXTERNAL(SDE_EVTLOG_FUNC_ENTRY,
|
||||
dp->link->hdcp_status.hdcp_state);
|
||||
|
||||
if (!dp) {
|
||||
DP_ERR("invalid input\n");
|
||||
return;
|
||||
}
|
||||
|
||||
SDE_EVT32_EXTERNAL(SDE_EVTLOG_FUNC_ENTRY,
|
||||
dp->link->hdcp_status.hdcp_state);
|
||||
|
||||
dp->link->hdcp_status.hdcp_state = state;
|
||||
|
||||
queue_delayed_work(dp->wq, &dp->hdcp_cb_work, HZ/4);
|
||||
|
|
|
|||
Loading…
Reference in a new issue