]> 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)
commitc458eca918843293cd001b8bbda23be7c3be8559
tree256b1998b86fe2e441b9d0e035b3048a10698386
parentd48663a4ee44074921ab6bd14810f31dc7874cbe
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