summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJon Mason <jon.mason@exar.com>2010-12-10 16:40:01 +0100
committerDavid S. Miller <davem@davemloft.net>2010-12-11 20:46:36 +0100
commit1853e2e15dc95ff3430530941b5856581251ef70 (patch)
tree0ae74601e624a49ebab41de725e2793fbfddb564 /Makefile
parentigb: Add new function to read part number from EEPROM in string format (diff)
downloadlinux-1853e2e15dc95ff3430530941b5856581251ef70.tar.xz
linux-1853e2e15dc95ff3430530941b5856581251ef70.zip
s2io: rx_ring_sz bounds checking
modparm rx_ring_sz can be set to be greater than the maximum allowable number of blocks. This results in an array overrun when probing the driver, and causes memory corruption. Also, the MAX_RX_DESC_1 multiply the max number of rings by max number of blocker per ring by 127, but the driver does the same calculation with 127+1. This results in the possibility of the value being set being larger than the maximum allowable value. Finally, clean-up the s2io_ethtool_gringparam code to be more intuitive. Signed-off-by: Jon Mason <jon.mason@exar.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions