From: Kevin McKinney Date: Sun, 18 Sep 2011 22:34:47 +0000 (-0400) Subject: Staging: bcm: Add size maximum size restrictions for IOCTL_IDLE_REQ X-Git-Tag: v3.2-rc1~169^2^2~402 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e228b7426e65df0f2e93c783c2c89baabe318b9b;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed