Skip to content

Commit

Permalink
rbd: passing wrong variable to bvec_kunmap_irq()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Sage Weil committed Oct 20, 2010
1 parent b8d0638 commit 85b5aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 85b5aaa

Please sign in to comment.