commit | 98836539504bd527d029e12496fbaa343b0adb48 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Fri Mar 09 19:00:31 2012 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Fri Mar 09 19:00:31 2012 +0100 |
tree | 5cfa71ba559fdcaffec6dd4d244d9c72bd346345 | |
parent | d1ece0c725b4643bcc0187e99b29e7886fc9705a [diff] |
Compression buffer fill fix We need to advance after the zero fill as well. Reported-by: David Sterba <dsterba@suse.cz> Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/lib/rand.c b/lib/rand.c index 995035f..a79fb9c 100644 --- a/lib/rand.c +++ b/lib/rand.c
@@ -125,6 +125,8 @@ this_len = len; memset(buf, 0, this_len); + len -= this_len; + buf += this_len; } return r;