mdss: mdp: release file node before process node when open fail
Releasing file node after process node causes the kernel panic because process node is already freed. Correct order to release nodes should be file node followed by process node when PM API fails. CRs-fixed: 753912 Change-Id: I252fc9eabaf0ba81d19b1989b03100849cdeca38 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
This commit is contained in:
parent
cec2b17af6
commit
fa69b02d44
1 changed files with 2 additions and 2 deletions
|
@ -2131,12 +2131,12 @@ blank_error:
|
|||
pm_runtime_put(info->dev);
|
||||
|
||||
pm_error:
|
||||
list_del(&file_info->list);
|
||||
kfree(file_info);
|
||||
if (pinfo && !pinfo->ref_cnt) {
|
||||
list_del(&pinfo->list);
|
||||
kfree(pinfo);
|
||||
}
|
||||
list_del(&file_info->list);
|
||||
kfree(file_info);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue