]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ixgb: fix bug when freeing resources
authorBrandeburg, Jesse <jesse.brandeburg@intel.com>
Tue, 30 Sep 2008 13:08:48 +0000 (13:08 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 6 Feb 2009 22:00:35 +0000 (14:00 -0800)
commit7fe09db5ae3d18b0915d6c0ef3d55a004e16e267
tree86fd9f9e14bd25dbb522f722a8e87f5b2a4aad32
parentb7b448e662a938360e546d22665c81ab62f6365a
ixgb: fix bug when freeing resources

commit 23e55a32ca1ffdbe7a492ef99f0e0ac48e504a13 upstream.

It was pointed out by Breno Leitao <leitao@linux.vnet.ibm.com> that
ixgb would crash on PPC when an IOMMU was in use, if change_mtu was
called.

It appears to be a pretty simple issue in the driver that wasn't discovered
because most systems don't run with an IOMMU.  The driver needs to only unmap
buffers that are mapped (duh).

CC: Breno Leitao <leitao@linux.vnet.ibm.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/ixgb/ixgb_main.c