diff mbox

[2/2,-next] rbd: passing wrong variable to bvec_kunmap_irq()

Message ID 20101011191511.GJ5851@bicker (mailing list archive)
State New, archived
Headers show

Commit Message

Dan Carpenter Oct. 11, 2010, 7:15 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index 52f9420..6ec9d53 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)
 				buf = bvec_kmap_irq(bv, &flags);
 				memset(buf + remainder, 0,
 				       bv->bv_len - remainder);
-				bvec_kunmap_irq(bv, &flags);
+				bvec_kunmap_irq(buf, &flags);
 			}
 			pos += bv->bv_len;
 		}