summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorHarsh Sahu <hsahu@codeaurora.org>2016-12-19 14:19:47 -0800
committerHarsh Sahu <hsahu@codeaurora.org>2016-12-19 15:13:32 -0800
commit280aef72aada196863d46f723de574abf8dfc1d5 (patch)
treea2fc29954e90d02606bced443e80f5d945cb071b /tools/perf/scripts/python/export-to-postgresql.py
parent3162449f7d245d45f007d4ea3224576ddf1bcc63 (diff)
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: Harsh Sahu <hsahu@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions