]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mac80211: fix CMAC functions not handling errors
authorChien Wong <m@xv97.com>
Thu, 13 Nov 2025 14:05:07 +0000 (22:05 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 12:55:02 +0000 (13:55 +0100)
commit199aea40b86803bce8e48a157415b338beb75990
treec03f895bfa16f9c45da6e0365181c4e2e308bd88
parent903e36c9e952f53aaf3d507c3befd9c8893a7340
wifi: mac80211: fix CMAC functions not handling errors

[ Upstream commit 353cda30d30e5dc7cacf8de5d2546724708ae3bb ]

The called hash functions could fail thus we should check return values.

Fixes: 26717828b75d ("mac80211: aes-cmac: switch to shash CMAC driver")
Signed-off-by: Chien Wong <m@xv97.com>
Link: https://patch.msgid.link/20251113140511.48658-2-m@xv97.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/aes_cmac.c
net/mac80211/aes_cmac.h
net/mac80211/wpa.c