]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Check crypto_aead_encrypt for errors
authorDaniel Phan <daniel.phan36@gmail.com>
Tue, 9 Mar 2021 20:41:36 +0000 (12:41 -0800)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 16 Mar 2021 20:20:41 +0000 (21:20 +0100)
commit58d25626f6f0ea5bcec3c13387b9f835d188723d
tree256b1998b86fe2e441b9d0e035b3048a10698386
parent0f7e90faddeef53a3568f449a0c3992d77510b66
mac80211: Check crypto_aead_encrypt for errors

crypto_aead_encrypt returns <0 on error, so if these calls are not checked,
execution may continue with failed encrypts.  It also seems that these two
crypto_aead_encrypt calls are the only instances in the codebase that are
not checked for errors.

Signed-off-by: Daniel Phan <daniel.phan36@gmail.com>
Link: https://lore.kernel.org/r/20210309204137.823268-1-daniel.phan36@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/aead_api.c
net/mac80211/aes_gmac.c