X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=crypto%2Fblkcipher.c;h=7a7219266e3cc343d1a9a63a492a9cd38e876db5;hb=ed2e5581d2702743460349e494f3ab8c4b0f28d8;hp=90d26c91f4e9e183b2a41363318344e3d646c20a;hpb=985c0cd3f75b5a546ceab002e36b4263f2f7d2c3;p=cascardo%2Flinux.git diff --git a/crypto/blkcipher.c b/crypto/blkcipher.c index 90d26c91f4e9..7a7219266e3c 100644 --- a/crypto/blkcipher.c +++ b/crypto/blkcipher.c @@ -89,9 +89,9 @@ static inline unsigned int blkcipher_done_fast(struct blkcipher_walk *walk, memcpy(walk->dst.virt.addr, walk->page, n); blkcipher_unmap_dst(walk); } else if (!(walk->flags & BLKCIPHER_WALK_PHYS)) { - blkcipher_unmap_src(walk); if (walk->flags & BLKCIPHER_WALK_DIFF) blkcipher_unmap_dst(walk); + blkcipher_unmap_src(walk); } scatterwalk_advance(&walk->in, n);