summaryrefslogtreecommitdiffstats
path: root/drivers/staging/quatech_usb2
diff options
context:
space:
mode:
authorKevin McKinney <klmckinney1@gmail.com>2011-09-18 18:34:47 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-09-19 10:46:17 -0700
commite228b7426e65df0f2e93c783c2c89baabe318b9b (patch)
tree0ebdfdcd307d57ae2f5137e70e7192cfbb3dad42 /drivers/staging/quatech_usb2
parent5ac5bd8754b3dabcf4aea7b5f4a28a1d8494a1b0 (diff)
downloadlinux-stable-e228b7426e65df0f2e93c783c2c89baabe318b9b.tar.gz
linux-stable-e228b7426e65df0f2e93c783c2c89baabe318b9b.tar.bz2
linux-stable-e228b7426e65df0f2e93c783c2c89baabe318b9b.zip
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 <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/quatech_usb2')
0 files changed, 0 insertions, 0 deletions