commit | b2f597882ff019c1edd492c751056112c30ab125 | [log] [tgz] |
---|---|---|
author | Sreenath Sharma <sreenats@broadcom.com> | Fri Oct 30 17:25:38 2015 +0530 |
committer | Ed Tam <etam@google.com> | Wed Nov 04 06:36:56 2015 +0000 |
tree | b7a77adf5e8fe3b4f1cfd71fa07b373e6b0a8f5b | |
parent | 38d11ab01866974f22b13b084db9aef2e5bd38eb [diff] |
net: wireless: bcmdhd: Ensure ring memory reading doesn't exceed boundary There can be cases were the PCIe bus is in invalid state and during this time all reads will return all ones. During this time the number of items to be read will be junk value causing read exceeding the boundary. To avoid this problem, check for improper length and return NULL, so that caller will not read further. Bug: 25397008 Change-Id: I6ea2c0c6faa708abe8e167dd899be2427c097d7a