aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/sh
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-08-27 04:16:22 +0300
committerDavid S. Miller <davem@davemloft.net>2013-08-29 01:24:08 -0400
commit80b17be70b63646cb141bf1826afe32281e561ec (patch)
treec82c0382e811d69142caf8bcd0133a443df189f6 /drivers/sh
parentMerge branch 'xen-netback' (diff)
downloadlinux-dev-80b17be70b63646cb141bf1826afe32281e561ec.tar.xz
linux-dev-80b17be70b63646cb141bf1826afe32281e561ec.zip
qlcnic: underflow in qlcnic_validate_max_tx_rings()
This function checks the upper bound but it doesn't check for negative numbers: if (txq > QLCNIC_MAX_TX_RINGS) { I've solved this by making "txq" a u32 type. I chose that because ->tx_count in the ethtool_channels struct is a __u32. This bug was added in aa4a1f7df7 ('qlcnic: Enable Tx queue changes using ethtool for 82xx Series adapter.'). Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Himanshu Madhani <himanshu.madhani@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/sh')
0 files changed, 0 insertions, 0 deletions