Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 280aef72 authored by Harsh Sahu's avatar Harsh Sahu
Browse files

msm: mdss: avoid possible infinite loop on kmalloc failure



If any of the calls to kmalloc fail then the value of ret becomes
non-zero. Hence the code in the if condition gets executed. Then in
"exit" section ret is set again to non-zero value. The program jumps
back to the exit label and the code in the if condition gets executed
again leading to an infinite loop. Removing the goto exit line will
avoid the possible infinite loop forming when kmalloc fails.

Change-Id: I0d7d7d3d6d65806ede866667a7030fb9d1e0480e
Signed-off-by: default avatarHarsh Sahu <hsahu@codeaurora.org>
parent 3162449f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment