mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
Merge "disp: msm: dp: check branch device when adding mst sim port"
This commit is contained in:
commit
9e6d0416a0
1 changed files with 4 additions and 0 deletions
|
|
@ -267,6 +267,10 @@ static void dp_mst_sim_add_port(struct dp_mst_private *mst,
|
|||
struct drm_dp_mst_port *port;
|
||||
|
||||
mstb = mst->mst_mgr.mst_primary;
|
||||
if (!mstb) {
|
||||
DP_ERR("Unable to add port. mst branch device was destroyed\n");
|
||||
return;
|
||||
}
|
||||
|
||||
port = kzalloc(sizeof(*port), GFP_KERNEL);
|
||||
if (!port)
|
||||
|
|
|
|||
Loading…
Reference in a new issue