]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SCSI] lpfc: fix NPIV mapping problems
authorFUJITA Tomonori <tomof@acm.org>
Wed, 4 Jul 2007 13:03:11 +0000 (06:03 -0700)
committerJames Bottomley <jejb@mulgrave.localdomain>
Sat, 14 Jul 2007 22:13:02 +0000 (17:13 -0500)
commitc59fd9ebc46da8d48b76955d4d48e3597f8c8726
tree17310b76cc57476b10b735603d3acc5b824ddecb
parentd4bd4cd0630060a64681590b9405b87e43c11f14
[SCSI] lpfc: fix NPIV mapping problems

This patch uses dma_map_sg with phba->pcidev->dev instead of
scsi_dma_map.

scsi_dma_map doesn't work for NPIV since fc_vport->dev isn't fully
initialized. check_addr() in arch/x86_64/kernel/pci-nommu.c leads to
the crash since dev->dma_mask is NULL.

For more details:

http://marc.info/?l=linux-scsi&m=118312448030633&w=2

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: James Smart <James.Smart@Emulex.Com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/lpfc/lpfc_scsi.c