diff options
| author | Sunil Khatri <sunilkh@codeaurora.org> | 2016-06-28 14:11:49 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-07-11 00:33:01 -0700 |
| commit | e6424852e3d96206c81429e24346ddbe7fd1892f (patch) | |
| tree | 2b0a4fb15e9a519887dd71dc91ff36bdd72b1ab5 /tools/perf/scripts/python | |
| parent | 1f1574bb1837ce7ee0bf24c40a178cdcbf2932da (diff) | |
msm: kgsl: Fix the access to invalid pool
If a free page is not found in a particular pool, we
fall back to lower order pools. While doing so make
sure we dont do that when already in zero order pool.
For zero order(pool_idx = 0) pool, (pool_idx-1) value
becomes -1 that is invalid and compiler throws the error
that array subscript is below bounds.
This problem is exposed when we enable kernel config option
"CONFIG_ALLOC_BUFFERS_IN_4K_CHUNKS" which will force only
zero order pool and hence the index value calculation to -1.
Change-Id: I81e8a1e79cd974b7a13a9d23cb3d809464b6dcda
Signed-off-by: Sunil Khatri <sunilkh@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
