diff options
Diffstat (limited to 'drivers/block/cpqarray.c')
-rw-r--r-- | drivers/block/cpqarray.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/block/cpqarray.c b/drivers/block/cpqarray.c index 568603d3043e..efab27fa1083 100644 --- a/drivers/block/cpqarray.c +++ b/drivers/block/cpqarray.c | |||
@@ -918,6 +918,7 @@ queue_next: | |||
918 | DBGPX( | 918 | DBGPX( |
919 | printk("sector=%d, nr_sectors=%d\n", creq->sector, creq->nr_sectors); | 919 | printk("sector=%d, nr_sectors=%d\n", creq->sector, creq->nr_sectors); |
920 | ); | 920 | ); |
921 | sg_init_table(tmp_sg, SG_MAX); | ||
921 | seg = blk_rq_map_sg(q, creq, tmp_sg); | 922 | seg = blk_rq_map_sg(q, creq, tmp_sg); |
922 | 923 | ||
923 | /* Now do all the DMA Mappings */ | 924 | /* Now do all the DMA Mappings */ |
@@ -929,7 +930,7 @@ DBGPX( | |||
929 | { | 930 | { |
930 | c->req.sg[i].size = tmp_sg[i].length; | 931 | c->req.sg[i].size = tmp_sg[i].length; |
931 | c->req.sg[i].addr = (__u32) pci_map_page(h->pci_dev, | 932 | c->req.sg[i].addr = (__u32) pci_map_page(h->pci_dev, |
932 | tmp_sg[i].page, | 933 | sg_page(&tmp_sg[i]), |
933 | tmp_sg[i].offset, | 934 | tmp_sg[i].offset, |
934 | tmp_sg[i].length, dir); | 935 | tmp_sg[i].length, dir); |
935 | } | 936 | } |