linux/drivers/net
Dan Carpenter 80b17be70b 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>
2013-08-29 01:24:08 -04:00
..
appletalk
arcnet
bonding bonding: fix error return code in bond_enslave() 2013-08-25 18:37:35 -04:00
caif
can can: flexcan: use platform_set_drvdata() 2013-08-22 09:40:20 +02:00
cris
dsa
ethernet qlcnic: underflow in qlcnic_validate_max_tx_rings() 2013-08-29 01:24:08 -04:00
fddi
hamradio
hippi
hyperv
ieee802154
irda Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2013-08-26 16:37:08 -04:00
phy Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2013-08-26 16:37:08 -04:00
plip
ppp pptp: fix byte order warnings 2013-08-13 15:10:22 -07:00
slip
team team: cleanup netpoll clode 2013-07-26 15:24:32 -07:00
usb Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2013-08-26 16:37:08 -04:00
vmxnet3 VMXNET3: Add support for virtual IOMMU 2013-08-27 16:02:02 -04:00
wan net: wan: sbni: Fix incorrect placement of __initdata 2013-08-09 13:24:26 -07:00
wimax
wireless Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2013-08-26 16:37:08 -04:00
xen-netback xen-netback: rename functions 2013-08-29 01:18:04 -04:00
dummy.c
eql.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macvlan.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2013-08-16 15:37:26 -07:00
macvtap.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2013-08-26 16:37:08 -04:00
Makefile
mdio.c
mii.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tun.c tun: Get skfilter layout 2013-08-21 12:21:45 -07:00
veth.c
virtio_net.c virtio-net: put virtio net header inline with data 2013-07-27 20:06:10 -07:00
vxlan.c vxlan: using kfree_rcu() to simplify the code 2013-08-20 15:05:03 -07:00
xen-netfront.c