Skip to content

Commit f898c52

Browse files
committed
crypto: ixp4xx - Remove bogus BUG_ON on scattered dst buffer
This patch removes a bogus BUG_ON in the ablkcipher path that triggers when the destination buffer is different from the source buffer and is scattered. Cc: [email protected] Signed-off-by: Herbert Xu <[email protected]>
1 parent 6f043b5 commit f898c52

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/crypto/ixp4xx_crypto.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,6 @@ static int ablk_perform(struct ablkcipher_request *req, int encrypt)
905905
crypt->mode |= NPE_OP_NOT_IN_PLACE;
906906
/* This was never tested by Intel
907907
* for more than one dst buffer, I think. */
908-
BUG_ON(req->dst->length < nbytes);
909908
req_ctx->dst = NULL;
910909
if (!chainup_buffers(dev, req->dst, nbytes, &dst_hook,
911910
flags, DMA_FROM_DEVICE))

0 commit comments

Comments
 (0)