commit | 850b4c97f776add61f6c7808b5e417b5b9898eac | [log] [tgz] |
---|---|---|
author | Ravi Aravamudhan <aravamud@codeaurora.org> | Wed Jul 03 17:57:52 2013 -0700 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Mon Jul 22 19:35:05 2013 -0700 |
tree | 2220128c97edeee02653ae8d32a99afb12c18caa | |
parent | d995a7f1df8c2e7f20e0af715d20f50db9b67b32 [diff] |
diag: Fix race condition in diag mempool Diag driver manages memory using memory pools. Allocation and de-allocation of memory depends on global count variables. This patch adds lock in allocation/free functions to protect those global variables. Change-Id: I908687c0ccb51c7901dfb3559262046abd2e8e27 Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>