bnx2fc: fix incorrect DMA memory mapping in bnx2fc_unmap_sg_list()
authorChad Dupuis <chad.dupuis@qlogic.com>
Tue, 2 Sep 2014 18:34:58 +0000 (14:34 -0400)
committerChristoph Hellwig <hch@lst.de>
Tue, 16 Sep 2014 16:10:14 +0000 (09:10 -0700)
commit5565461e30c15525c431814dd612118a78d05992
tree6bc1fd956899655443cc607e0b367bead8a222a7
parentfd10ccfa8dfe740f61471b212c200fbdb5de82f5
bnx2fc: fix incorrect DMA memory mapping in bnx2fc_unmap_sg_list()

This patch is based on a problem and solution from Maurizio Lombardi
where bnx2fc isn't consistent in which device struct we using for DMA
map and unmap operations.  Make them consistent by using dma_sg_unmap
in bnx2fc_unmap_sg_list like bnx2fc_map_sg.

Reviewed-by: Eddie Wai <eddie.wai@broadcom.com>
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/bnx2fc/bnx2fc_io.c