diff options
| author | Kevin McKinney <[email protected]> | 2011-09-18 18:34:47 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2011-09-19 10:46:17 -0700 |
| commit | e228b7426e65df0f2e93c783c2c89baabe318b9b (patch) | |
| tree | 0ebdfdcd307d57ae2f5137e70e7192cfbb3dad42 /tools/perf/scripts/python | |
| parent | 5ac5bd8754b3dabcf4aea7b5f4a28a1d8494a1b0 (diff) | |
Staging: bcm: Add size maximum size restrictions for IOCTL_IDLE_REQ
In the first alteration, the MAX_CNTL_PKT_SIZE is the
maximum size of the control packet in ->Adapter->txctlpacket[]
which is defined in InitAdapter(). This caps the size of
kmalloc memory allocation. In the second change, this max
cap fixes a potential memory corruption bug when subsequent
memset and memcpy calls are invoked.
Signed-off-by: Kevin McKinney <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions