ixgb: fix bug when freeing resources
authorBrandeburg, Jesse <jesse.brandeburg@intel.com>
Tue, 30 Sep 2008 13:08:48 +0000 (13:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Oct 2008 23:53:40 +0000 (16:53 -0700)
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>

No differences found