Skip to content
Snippets Groups Projects
Commit b2f59788 authored by Sreenath Sharma's avatar Sreenath Sharma Committed by Ed Tam
Browse files

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
parent 38d11ab0
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment