diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-13 16:08:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-13 16:08:01 -0400 |
commit | 32f44d62e463f66307513e90c09b4ceeac13cc22 (patch) | |
tree | a0e0c33b3c9c4474787ebb007ff15d6600fb053f /crypto/zlib.c | |
parent | f3ad116588151b3371ae4e092290e4f48e62b8bb (diff) | |
parent | 08ced854fc4a979d9e59ba01000bf96e7057cfbc (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: (35 commits)
hwrng: timeriomem - Fix potential oops (request_mem_region/__devinit)
crypto: api - Use formatting of module name
crypto: testmgr - Allow hash test vectors longer than a page
crypto: testmgr - Check all test vector lengths
crypto: hifn_795x - fix __dev{init,exit} markings
crypto: tcrypt - Do not exit on success in fips mode
crypto: compress - Return produced bytes in crypto_{,de}compress_{update,final}
hwrng: via_rng - Support VIA Nano hardware RNG on X86_64 builds
hwrng: via_rng - Support VIA Nano hardware RNG
hwrng: via_rng - The VIA Hardware RNG driver is for the CPU, not Chipset
crypto: testmgr - Skip algs not flagged fips_allowed in fips mode
crypto: testmgr - Mark algs allowed in fips mode
crypto: testmgr - Add ctr(aes) test vectors
crypto: testmgr - Dynamically allocate xbuf and axbuf
crypto: testmgr - Print self-test pass notices in fips mode
crypto: testmgr - Catch base cipher self-test failures in fips mode
crypto: testmgr - Add ansi_cprng test vectors
crypto: testmgr - Add infrastructure for ansi_cprng self-tests
crypto: testmgr - Add self-tests for rfc4309(ccm(aes))
crypto: testmgr - Handle AEAD test vectors expected to fail verification
...
Diffstat (limited to 'crypto/zlib.c')
-rw-r--r-- | crypto/zlib.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/crypto/zlib.c b/crypto/zlib.c index 33609bab614e..c3015733c990 100644 --- a/crypto/zlib.c +++ b/crypto/zlib.c | |||
@@ -165,15 +165,15 @@ static int zlib_compress_update(struct crypto_pcomp *tfm, | |||
165 | return -EINVAL; | 165 | return -EINVAL; |
166 | } | 166 | } |
167 | 167 | ||
168 | ret = req->avail_out - stream->avail_out; | ||
168 | pr_debug("avail_in %u, avail_out %u (consumed %u, produced %u)\n", | 169 | pr_debug("avail_in %u, avail_out %u (consumed %u, produced %u)\n", |
169 | stream->avail_in, stream->avail_out, | 170 | stream->avail_in, stream->avail_out, |
170 | req->avail_in - stream->avail_in, | 171 | req->avail_in - stream->avail_in, ret); |
171 | req->avail_out - stream->avail_out); | ||
172 | req->next_in = stream->next_in; | 172 | req->next_in = stream->next_in; |
173 | req->avail_in = stream->avail_in; | 173 | req->avail_in = stream->avail_in; |
174 | req->next_out = stream->next_out; | 174 | req->next_out = stream->next_out; |
175 | req->avail_out = stream->avail_out; | 175 | req->avail_out = stream->avail_out; |
176 | return 0; | 176 | return ret; |
177 | } | 177 | } |
178 | 178 | ||
179 | static int zlib_compress_final(struct crypto_pcomp *tfm, | 179 | static int zlib_compress_final(struct crypto_pcomp *tfm, |
@@ -195,15 +195,15 @@ static int zlib_compress_final(struct crypto_pcomp *tfm, | |||
195 | return -EINVAL; | 195 | return -EINVAL; |
196 | } | 196 | } |
197 | 197 | ||
198 | ret = req->avail_out - stream->avail_out; | ||
198 | pr_debug("avail_in %u, avail_out %u (consumed %u, produced %u)\n", | 199 | pr_debug("avail_in %u, avail_out %u (consumed %u, produced %u)\n", |
199 | stream->avail_in, stream->avail_out, | 200 | stream->avail_in, stream->avail_out, |
200 | req->avail_in - stream->avail_in, | 201 | req->avail_in - stream->avail_in, ret); |
201 | req->avail_out - stream->avail_out); | ||
202 | req->next_in = stream->next_in; | 202 | req->next_in = stream->next_in; |
203 | req->avail_in = stream->avail_in; | 203 | req->avail_in = stream->avail_in; |
204 | req->next_out = stream->next_out; | 204 | req->next_out = stream->next_out; |
205 | req->avail_out = stream->avail_out; | 205 | req->avail_out = stream->avail_out; |
206 | return 0; | 206 | return ret; |
207 | } | 207 | } |
208 | 208 | ||
209 | 209 | ||
@@ -280,15 +280,15 @@ static int zlib_decompress_update(struct crypto_pcomp *tfm, | |||
280 | return -EINVAL; | 280 | return -EINVAL; |
281 | } | 281 | } |
282 | 282 | ||
283 | ret = req->avail_out - stream->avail_out; | ||
283 | pr_debug("avail_in %u, avail_out %u (consumed %u, produced %u)\n", | 284 | pr_debug("avail_in %u, avail_out %u (consumed %u, produced %u)\n", |
284 | stream->avail_in, stream->avail_out, | 285 | stream->avail_in, stream->avail_out, |
285 | req->avail_in - stream->avail_in, | 286 | req->avail_in - stream->avail_in, ret); |
286 | req->avail_out - stream->avail_out); | ||
287 | req->next_in = stream->next_in; | 287 | req->next_in = stream->next_in; |
288 | req->avail_in = stream->avail_in; | 288 | req->avail_in = stream->avail_in; |
289 | req->next_out = stream->next_out; | 289 | req->next_out = stream->next_out; |
290 | req->avail_out = stream->avail_out; | 290 | req->avail_out = stream->avail_out; |
291 | return 0; | 291 | return ret; |
292 | } | 292 | } |
293 | 293 | ||
294 | static int zlib_decompress_final(struct crypto_pcomp *tfm, | 294 | static int zlib_decompress_final(struct crypto_pcomp *tfm, |
@@ -328,15 +328,15 @@ static int zlib_decompress_final(struct crypto_pcomp *tfm, | |||
328 | return -EINVAL; | 328 | return -EINVAL; |
329 | } | 329 | } |
330 | 330 | ||
331 | ret = req->avail_out - stream->avail_out; | ||
331 | pr_debug("avail_in %u, avail_out %u (consumed %u, produced %u)\n", | 332 | pr_debug("avail_in %u, avail_out %u (consumed %u, produced %u)\n", |
332 | stream->avail_in, stream->avail_out, | 333 | stream->avail_in, stream->avail_out, |
333 | req->avail_in - stream->avail_in, | 334 | req->avail_in - stream->avail_in, ret); |
334 | req->avail_out - stream->avail_out); | ||
335 | req->next_in = stream->next_in; | 335 | req->next_in = stream->next_in; |
336 | req->avail_in = stream->avail_in; | 336 | req->avail_in = stream->avail_in; |
337 | req->next_out = stream->next_out; | 337 | req->next_out = stream->next_out; |
338 | req->avail_out = stream->avail_out; | 338 | req->avail_out = stream->avail_out; |
339 | return 0; | 339 | return ret; |
340 | } | 340 | } |
341 | 341 | ||
342 | 342 | ||