]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] aacraid: check pci_alloc_consistent errors
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Thu, 23 Oct 2008 08:36:08 +0000 (17:36 +0900)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 29 Dec 2008 17:24:11 +0000 (11:24 -0600)
commit30c69ea4a89fd60cb0fdc1a1cd91d7460755faf0
tree3181784b0c06de8106c93e4df3cce26cc80b5488
parent20080c151306d88b46fad24fb7f7fd723675dacf
[SCSI] aacraid: check pci_alloc_consistent errors

We need to check the address that pci_alloc_consistent() returns since
it might fail.

When pci_alloc_consistent() fails, some IOMMUs set the dma_handle
argument to zero. So we can't use fibptr->hw_fib_pa directly here.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: Aacraid List <aacraid@adaptec.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/aacraid/commctrl.c