crypto: omap-aes-gcm - fix corner case with only auth data
authorTero Kristo <t-kristo@ti.com>
Tue, 5 Nov 2019 14:00:56 +0000 (16:00 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 11 Dec 2019 08:36:58 +0000 (16:36 +0800)
commita9befcf46913bd70d1421ea6b77e8b47a8b70483
tree546b30a5338dc56072c7597817498ac486f34dc0
parent2b352489d0d6398f6d47383b48ed3527f7d078f8
crypto: omap-aes-gcm - fix corner case with only auth data

Fix a corner case where only authdata is generated, without any provided
assocdata / cryptdata. Passing the empty scatterlists to OMAP AES core driver
in this case would confuse it, failing to map DMAs.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-aes-gcm.c