diff options
Diffstat (limited to 'drivers/block/cciss.c')
-rw-r--r-- | drivers/block/cciss.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index 7c2cfde08f18..5a6fe17fc638 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c | |||
@@ -2610,7 +2610,7 @@ static void do_cciss_request(struct request_queue *q) | |||
2610 | (int)creq->nr_sectors); | 2610 | (int)creq->nr_sectors); |
2611 | #endif /* CCISS_DEBUG */ | 2611 | #endif /* CCISS_DEBUG */ |
2612 | 2612 | ||
2613 | memset(tmp_sg, 0, sizeof(tmp_sg)); | 2613 | sg_init_table(tmp_sg, MAXSGENTRIES); |
2614 | seg = blk_rq_map_sg(q, creq, tmp_sg); | 2614 | seg = blk_rq_map_sg(q, creq, tmp_sg); |
2615 | 2615 | ||
2616 | /* get the DMA records for the setup */ | 2616 | /* get the DMA records for the setup */ |
@@ -2621,7 +2621,7 @@ static void do_cciss_request(struct request_queue *q) | |||
2621 | 2621 | ||
2622 | for (i = 0; i < seg; i++) { | 2622 | for (i = 0; i < seg; i++) { |
2623 | c->SG[i].Len = tmp_sg[i].length; | 2623 | c->SG[i].Len = tmp_sg[i].length; |
2624 | temp64.val = (__u64) pci_map_page(h->pdev, tmp_sg[i].page, | 2624 | temp64.val = (__u64) pci_map_page(h->pdev, sg_page(&tmp_sg[i]), |
2625 | tmp_sg[i].offset, | 2625 | tmp_sg[i].offset, |
2626 | tmp_sg[i].length, dir); | 2626 | tmp_sg[i].length, dir); |
2627 | c->SG[i].Addr.lower = temp64.val32.lower; | 2627 | c->SG[i].Addr.lower = temp64.val32.lower; |