diff options
Diffstat (limited to 'arch/cris')
-rw-r--r-- | arch/cris/arch-v32/drivers/cryptocop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/cris/arch-v32/drivers/cryptocop.c b/arch/cris/arch-v32/drivers/cryptocop.c index fd529a0ec758..b70fb34939d9 100644 --- a/arch/cris/arch-v32/drivers/cryptocop.c +++ b/arch/cris/arch-v32/drivers/cryptocop.c | |||
@@ -628,9 +628,9 @@ static int create_output_descriptors(struct cryptocop_operation *operation, int | |||
628 | cdesc->dma_descr->buf = (char*)virt_to_phys(operation->tfrm_op.indata[*iniov_ix].iov_base + *iniov_offset); | 628 | cdesc->dma_descr->buf = (char*)virt_to_phys(operation->tfrm_op.indata[*iniov_ix].iov_base + *iniov_offset); |
629 | cdesc->dma_descr->after = cdesc->dma_descr->buf + dlength; | 629 | cdesc->dma_descr->after = cdesc->dma_descr->buf + dlength; |
630 | 630 | ||
631 | assert(desc_len >= dlength); | ||
631 | desc_len -= dlength; | 632 | desc_len -= dlength; |
632 | *iniov_offset += dlength; | 633 | *iniov_offset += dlength; |
633 | assert(desc_len >= 0); | ||
634 | if (*iniov_offset >= operation->tfrm_op.indata[*iniov_ix].iov_len) { | 634 | if (*iniov_offset >= operation->tfrm_op.indata[*iniov_ix].iov_len) { |
635 | *iniov_offset = 0; | 635 | *iniov_offset = 0; |
636 | ++(*iniov_ix); | 636 | ++(*iniov_ix); |