X-Git-Url: https://bbs.cooldavid.org/git/?a=blobdiff_plain;f=crypto%2Fblkcipher.c;h=7a7219266e3cc343d1a9a63a492a9cd38e876db5;hb=24b7ea9f6c9787fad885442ed0cc010f1aa69cca;hp=90d26c91f4e9e183b2a41363318344e3d646c20a;hpb=1e2ae4ddd373af6fa3ea2483d7fc4a08c7f54395;p=net-next-2.6.git diff --git a/crypto/blkcipher.c b/crypto/blkcipher.c index 90d26c91f4e..7a7219266e3 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);