projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
208afec
)
[SCSI] hpsa: Check for dma_mapping_error in hpsa_map_one
author
Shuah Khan
<shuah.khan@hp.com>
Wed, 20 Feb 2013 17:24:34 +0000
(11:24 -0600)
committer
James Bottomley
<JBottomley@Parallels.com>
Sun, 24 Feb 2013 09:33:27 +0000
(09:33 +0000)
Signed-off-by: Shuah Khan <shuah.khan@hp.com>
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/hpsa.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/hpsa.c
b/drivers/scsi/hpsa.c
index 4f338061b5c3305f3863ef0360aab649da737f8a..3b4d195b49783beebe553249c0e79842935e219e 100644
(file)
--- a/
drivers/scsi/hpsa.c
+++ b/
drivers/scsi/hpsa.c
@@
-1405,6
+1405,11
@@
static void hpsa_map_one(struct pci_dev *pdev,
}
addr64 = (u64) pci_map_single(pdev, buf, buflen, data_direction);
+ if (dma_mapping_error(&pdev->dev, addr64)) {
+ cp->Header.SGList = 0;
+ cp->Header.SGTotal = 0;
+ return;
+ }
cp->SG[0].Addr.lower =
(u32) (addr64 & (u64) 0x00000000FFFFFFFF);
cp->SG[0].Addr.upper =