commit | 0e044c61debecfd2a91e64fbb5c5060885d4f14d | [log] [tgz] |
---|---|---|
author | Neeti Desai <neetid@codeaurora.org> | Tue May 28 17:37:15 2013 -0700 |
committer | Neeti Desai <neetid@codeaurora.org> | Wed May 29 12:09:05 2013 -0700 |
tree | 49313ba6f8a12c50d83449f6dc0f480e57f968e2 | |
parent | d1adda20aa35ba4c02030e7c303da59fc1c44438 [diff] |
msm: ocmem: Create ocmem_region when memory is available. The ocmem_region structure must not be created if the ocmem request from the client cannot be allocated at all. Otherwise the memory corresponding to the ocmem_region might never be freed if the requesting client calls ocmem_free() before receiving the allocation. This might lead to a memory leak. CRs-Fixed: 492929 Change-Id: I18ddb5ff5a4f8208a75db2eacb602c8c070cd990 Signed-off-by: Neeti Desai <neetid@codeaurora.org>