commit | 4e3dc811e4f31a23a3f07a9f8f6e3d2128a7c105 | [log] [tgz] |
---|---|---|
author | Channagoud Kadabi <ckadabi@codeaurora.org> | Tue Oct 14 12:32:56 2014 -0700 |
committer | Channagoud Kadabi <ckadabi@codeaurora.org> | Fri Oct 17 10:54:54 2014 -0700 |
tree | 1fb9e3e970d7e378c9ceba928fbd3d1a23e42811 | |
parent | a4bd3ef195bc40909078e91e3400a2e161ffd730 [diff] |
platform: msm_shared: Fix fifo overflow condition When multiple requests are sent to RPM the smd driver overwrites beyond the limit of fifo size and causes the device to crash. Before writing any request to the RPM fifo make sure to check for overflow conditions and the wrap the read and write index to the beginning of the FIFO. Change-Id: Ie73f68ff4bdc1a957dbd19f076f9b6422485ecb7