On Tue, Jan 22, 2019 at 04:47:01PM +0200, Horia Geantă wrote: > Recent AEAD changes in testmgr framework introduced by commit > a0d608ee5ebf ("crypto: testmgr - unify the AEAD encryption and decryption test vectors") > uncovered an error in the CAAM drivers, since they don't correctly > handle the case when AEAD output length is zero. > > Add checks to avoid feeding zero-length req->dst to DMA API. > > Signed-off-by: Horia Geantă <horia.geanta@xxxxxxx> > --- > drivers/crypto/caam/caamalg.c | 26 ++++++++++++++++++-------- > drivers/crypto/caam/caamalg_qi.c | 23 +++++++++++++++-------- > drivers/crypto/caam/caamalg_qi2.c | 22 ++++++++++++++-------- > 3 files changed, 47 insertions(+), 24 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt