commit | 545a706dc416c5bebfab703334fc08256a84a1ef | [log] [tgz] |
---|---|---|
author | Vidyakumar Athota <vathota@codeaurora.org> | Thu Apr 06 10:27:58 2017 -0700 |
committer | Banajit Goswami <bgoswami@codeaurora.org> | Tue Jun 13 09:26:42 2017 -0700 |
tree | 1b0ed4447c90f16c01a575974587427cf62a6046 | |
parent | d0a312455698f5efd1f3ec72bcfe8d58490bbe0a [diff] |
soc: qcom: fix to avoid memory allocation failures Currenlty wdsp_glink_write() API allocates 256KB buffer and free after it is transferred to glink. But this may result in memory allocation failures in low memory situations. Fix this issue by allocating the required size and validate it to avoid overflow. Change-Id: I891e4361aa5f24c5a518b3acb1d7cf6a9baa5bdf Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>