summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorVutla, Lokesh <lokeshvutla@ti.com>2015-03-31 09:52:25 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-06 21:59:20 +0200
commitce9d2970658bfbef6903242681e856353db864f3 (patch)
tree508609b9a35ebfca2ff1be9cc7c8fd00a1dc5779 /net/lapb/lapb_iface.c
parentbc55d7ddb91f0127945b92a7f94cfe0915e62d3e (diff)
crypto: omap-aes - Fix support for unequal lengths
commit 6d7e7e02a044025237b6f62a20521170b794537f upstream. For cases where total length of an input SGs is not same as length of the input data for encryption, omap-aes driver crashes. This happens in the case when IPsec is trying to use omap-aes driver. To avoid this, we copy all the pages from the input SG list into a contiguous buffer and prepare a single element SG list for this buffer with length as the total bytes to crypt, which is similar thing that is done in case of unaligned lengths. Fixes: 6242332ff2f3 ("crypto: omap-aes - Add support for cases of unaligned lengths") Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions