aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/umem.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/umem.c')
-rw-r--r--drivers/block/umem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/block/umem.c b/drivers/block/umem.c
index 99806f9ee4ce..5f5095afb06b 100644
--- a/drivers/block/umem.c
+++ b/drivers/block/umem.c
@@ -484,7 +484,8 @@ static void process_page(unsigned long data)
484 page->idx++; 484 page->idx++;
485 if (page->idx >= bio->bi_vcnt) { 485 if (page->idx >= bio->bi_vcnt) {
486 page->bio = bio->bi_next; 486 page->bio = bio->bi_next;
487 page->idx = page->bio->bi_idx; 487 if (page->bio)
488 page->idx = page->bio->bi_idx;
488 } 489 }
489 490
490 pci_unmap_page(card->dev, desc->data_dma_handle, 491 pci_unmap_page(card->dev, desc->data_dma_handle,