linux/drivers/net
Alexander Duyck eb022d058f ixgbevf: Fix multiple issues in ixgbevf_get/set_ringparam
In ixgbevf_get_ringparam we could run into a NULL pointer dereference
if the rings were not allocated when we attempted the call.  To prevent
that we can just access the tx/rx_ring_count values instead of attempting
to access the rings to get the count.

This change corrects a memory leak and memory corruption in
ixgbevf_set_ringparam.

The memory leak was due to us not freeing the resources from the ring
before overwriting them.  This change corrects the memory leak by making
certain to call ixgbe_free_tx/rx_resources on the rings prior to freeing
them.

The memory corruption was because we were replacing the rings but not
updating the q_vectors.  It addresses the memory corruption by leaving the
rings in place and instead just copying the contents of the new rings into
the existing rings.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Acked-by: Greg Rose <gregory.v.rose@intel.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2012-07-18 13:18:24 -07:00
..
appletalk
arcnet
bonding bonding: refine IFF_XMIT_DST_RELEASE capability 2012-07-18 09:31:25 -07:00
caif
can can: softing: softing_main: ensure a consistent return value in error case 2012-07-17 09:35:59 +02:00
cris net: Properly define functions with no parameters 2012-07-10 23:13:45 -07:00
dsa
ethernet ixgbevf: Fix multiple issues in ixgbevf_get/set_ringparam 2012-07-18 13:18:24 -07:00
fddi
hamradio
hippi
hyperv hyperv: Add support for setting MAC from within guests 2012-07-16 22:54:24 -07:00
irda
phy Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-07-10 23:56:33 -07:00
plip
ppp
slip
team team: refine IFF_XMIT_DST_RELEASE capability 2012-07-18 11:28:46 -07:00
usb net: qmi_wwan: add ZTE MF821D 2012-07-18 09:40:53 -07:00
vmxnet3
wan
wimax drivers/net: Use eth_random_addr 2012-07-16 22:38:28 -07:00
wireless wireless: Use eth_random_addr 2012-07-16 22:38:28 -07:00
xen-netback
dummy.c
eql.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macvlan.c
macvtap.c
Makefile
mdio.c
mii.c
netconsole.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tun.c drivers/net: Use eth_random_addr 2012-07-16 22:38:28 -07:00
veth.c
virtio_net.c
xen-netfront.c