commit | 1da385e2d6588a471cffb7a62136145fdf7aa0e1 | [log] [tgz] |
---|---|---|
author | Iliya Varadzhakov <ivarad@codeaurora.org> | Thu Jul 04 04:32:57 2013 -0700 |
committer | Iliya Varadzhakov <ivarad@codeaurora.org> | Mon Jul 15 07:22:02 2013 -0700 |
tree | 5ea3a4f3dd0a31bcc254f86a7052e307840ab30e | |
parent | 502f45d3494393c49f8d0e5a4a61530977fa19d8 [diff] |
msm:cpp: Check number of buffers before allocate stream_info Number of buffers used by cpp is defined by user space. In case this number is ZERO the allocated memory space will be pointed by ZERO_SIZE_PTR. Referencing ZERO_SIZE_PTR, causes same type of behavior as referencing the NULL pointer Change-Id: I42665225c7d055cda6749198c35e94c1442c6d3e Signed-off-by: Iliya Varadzhakov <ivarad@codeaurora.org>