Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85b5aaa6 authored by Dan Carpenter's avatar Dan Carpenter Committed by Sage Weil
Browse files

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: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent b8d0638a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -554,7 +554,7 @@ static void zero_bio_chain(struct bio *chain, int start_ofs)
				buf = bvec_kmap_irq(bv, &flags);
				buf = bvec_kmap_irq(bv, &flags);
				memset(buf + remainder, 0,
				memset(buf + remainder, 0,
				       bv->bv_len - remainder);
				       bv->bv_len - remainder);
				bvec_kunmap_irq(bv, &flags);
				bvec_kunmap_irq(buf, &flags);
			}
			}
			pos += bv->bv_len;
			pos += bv->bv_len;
		}
		}