mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
Merge "disp: msm: sde: increment refcount of dma_fence before access"
This commit is contained in:
commit
ec3da37b4a
1 changed files with 12 additions and 4 deletions
|
|
@ -6151,10 +6151,18 @@ static int _sde_debugfs_fence_status_show(struct seq_file *s, void *data)
|
|||
seq_printf(s, "plane:%u stage:%d\n", plane->base.id,
|
||||
pstate->stage);
|
||||
|
||||
fence = pstate->input_fence;
|
||||
SDE_EVT32(DRMID(crtc), fence);
|
||||
if (fence)
|
||||
sde_fence_list_dump(fence, &s);
|
||||
SDE_EVT32(DRMID(crtc), plane->base.id, pstate->input_fence);
|
||||
if (pstate->input_fence) {
|
||||
|
||||
rcu_read_lock();
|
||||
fence = dma_fence_get_rcu(pstate->input_fence);
|
||||
rcu_read_unlock();
|
||||
|
||||
if (fence) {
|
||||
sde_fence_list_dump(fence, &s);
|
||||
dma_fence_put(fence);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Dump release fence info */
|
||||
|
|
|
|||
Loading…
Reference in a new issue