ixgbe: Fix set_ringparam in ixgbe to use the same memory pools.
authorPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Fri, 26 Dec 2008 09:36:33 +0000 (01:36 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Dec 2008 09:36:33 +0000 (01:36 -0800)
commitd3fa4721456226d77475181a4bfbe5b3d899d65c
treea602610942cadbe5e44aa7549d0622bdb47730bf
parent7adf1525befb5606462431eb1a4ea40ded5baef4
ixgbe: Fix set_ringparam in ixgbe to use the same memory pools.

The adapter rings are kcalloc()'d, but in set_ringparam() in ixgbe_ethtool,
we replace that memory from the vmalloc() pool.  This can result in a NULL
pointer reference when trying to modify the rings at a later time, or on
device removal.

Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_ethtool.c