diff options
author | Jesse Brandeburg <[email protected]> | 2009-06-30 11:44:56 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2009-06-30 19:46:54 -0700 |
commit | 4f57ca6e17edfc56ddde5c87eb893e47e0d2d343 (patch) | |
tree | d8ac9019f317daae33e02e77bbd04f94fc79073b /drivers/mtd/lpddr/lpddr_cmds.c | |
parent | a1f25324b93ecdab1cbb27d3e9c4cafecb06ceda (diff) |
ixgbe: fix unmap length bug
This patch addresses three WARN_ON statements from DMA-API debug code
ixgbe is mapping more than it unmaps, reduce the length of the map call and
remove the "used once" local variable.
found by Joerg Roedel <[email protected]> in 2.6.30, so is a candidate
for -stable.
in addition, fix missing ->dma = 0 after unmap to prevent double free with
pci_unmap_single
and lastly, don't unmap (half) pages that aren't mapped.
Signed-off-by: Jesse Brandeburg <[email protected]>
CC: Joerg Roedel <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions