aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/xen-blkfront.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/xen-blkfront.c')
-rw-r--r--drivers/block/xen-blkfront.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c
index 911d733d21b6..f1de806b0a63 100644
--- a/drivers/block/xen-blkfront.c
+++ b/drivers/block/xen-blkfront.c
@@ -852,6 +852,7 @@ static void blkif_completion(struct blk_shadow *s, struct blkfront_info *info,
852 rq_for_each_segment(bvec, s->request, iter) { 852 rq_for_each_segment(bvec, s->request, iter) {
853 BUG_ON((bvec->bv_offset + bvec->bv_len) > PAGE_SIZE); 853 BUG_ON((bvec->bv_offset + bvec->bv_len) > PAGE_SIZE);
854 i = offset >> PAGE_SHIFT; 854 i = offset >> PAGE_SHIFT;
855 BUG_ON(i >= s->req.u.rw.nr_segments);
855 shared_data = kmap_atomic( 856 shared_data = kmap_atomic(
856 pfn_to_page(s->grants_used[i]->pfn)); 857 pfn_to_page(s->grants_used[i]->pfn));
857 bvec_data = bvec_kmap_irq(bvec, &flags); 858 bvec_data = bvec_kmap_irq(bvec, &flags);
@@ -1069,7 +1070,7 @@ again:
1069 goto abort_transaction; 1070 goto abort_transaction;
1070 } 1071 }
1071 err = xenbus_printf(xbt, dev->nodename, 1072 err = xenbus_printf(xbt, dev->nodename,
1072 "feature-persistent-grants", "%u", 1); 1073 "feature-persistent", "%u", 1);
1073 if (err) 1074 if (err)
1074 dev_warn(&dev->dev, 1075 dev_warn(&dev->dev,
1075 "writing persistent grants feature to xenbus"); 1076 "writing persistent grants feature to xenbus");