diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/crypto/talitos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index b299f0902827..8653f601b95f 100644 --- a/drivers/crypto/talitos.c +++ b/drivers/crypto/talitos.c | |||
@@ -825,7 +825,7 @@ static void ipsec_esp_encrypt_done(struct device *dev, | |||
825 | ipsec_esp_unmap(dev, edesc, areq); | 825 | ipsec_esp_unmap(dev, edesc, areq); |
826 | 826 | ||
827 | /* copy the generated ICV to dst */ | 827 | /* copy the generated ICV to dst */ |
828 | if (edesc->dma_len) { | 828 | if (edesc->dst_nents) { |
829 | icvdata = &edesc->link_tbl[edesc->src_nents + | 829 | icvdata = &edesc->link_tbl[edesc->src_nents + |
830 | edesc->dst_nents + 2]; | 830 | edesc->dst_nents + 2]; |
831 | sg = sg_last(areq->dst, edesc->dst_nents); | 831 | sg = sg_last(areq->dst, edesc->dst_nents); |