aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/rbd.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-10-11 15:15:11 -0400
committerSage Weil <sage@newdream.net>2010-10-20 18:38:25 -0400
commit85b5aaa624aac568b8a3a88dbe4de6628c7cc527 (patch)
tree7051c9532750eb81fb76e1473a09fd82ba1f314c /drivers/block/rbd.c
parentb8d0638a98aa4a42ff322234b882487cd74e5c52 (diff)
rbd: passing wrong variable to bvec_kunmap_irq()
We should be passing "buf" here insead of "bv". This is tricky because it's not the same as kmap() and kunmap(). GCC does warn about it if you compile on i386 with CONFIG_HIGHMEM. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'drivers/block/rbd.c')
-rw-r--r--drivers/block/rbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index 52f9420704c7..6ec9d53806c5 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -554,7 +554,7 @@ static void zero_bio_chain(struct bio *chain, int start_ofs)
554 buf = bvec_kmap_irq(bv, &flags); 554 buf = bvec_kmap_irq(bv, &flags);
555 memset(buf + remainder, 0, 555 memset(buf + remainder, 0,
556 bv->bv_len - remainder); 556 bv->bv_len - remainder);
557 bvec_kunmap_irq(bv, &flags); 557 bvec_kunmap_irq(buf, &flags);
558 } 558 }
559 pos += bv->bv_len; 559 pos += bv->bv_len;
560 } 560 }