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)
commit23e55a32ca1ffdbe7a492ef99f0e0ac48e504a13
tree485f848f2270a5d0d1b167e3b5f9d34617979711
parent1694f25b4beb80b911fb21efcff36acca39aa696
ixgb: fix bug when freeing resources

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>
drivers/net/ixgb/ixgb_main.c