]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: aes_cmac: check crypto_shash_setkey() return value
authorJohannes Berg <johannes.berg@intel.com>
Fri, 9 Apr 2021 09:40:28 +0000 (12:40 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 19 Apr 2021 10:01:40 +0000 (12:01 +0200)
commit25842a2776cb0a7f62f6576987c16eb7a8babbfd
tree4ed1dc01c6a0568b9b60e6f71b05e5d4ecabe80f
parent42276e347434707ac07d6a970bd43de3ec08a679
mac80211: aes_cmac: check crypto_shash_setkey() return value

As crypto_shash_setkey() can fail, we should check the return value.

Addresses-Coverity-ID: 1401813 ("Unchecked return value")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210409123755.533ff7acf1d2.I034bafa201c4a6823333f8410aeaa60cca5ee9e0@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/aes_cmac.c