wifi: ath11k: print a warning when crypto_alloc_shash() fails
PATCH 1/1 wifi: ath11k: print a warning when crypto_alloc_shash() fails
From: Kalle Valo <[email protected]>
Christoph reported that ath11k failed to initialise when michael_mic.ko module was not installed. To make it easier to notice that case print a warning when crypto_alloc_shash() fails.
Compile tested only.
Reported-by Christoph Hellwig <[email protected]>
Signed-off-by Kalle Valo <[email protected]>
--- drivers/net/wireless/ath/ath11k/dp_rx.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/net/wireless/ath/ath11k/dp_rx.c +4 -1
@@ -3106,8 +3106,11 @@ int ath11k_peer_rx_frag_setup(struct ath11k *ar, const u8 *peer_mac, int vdev_idint i; tfm =crypto_alloc_shash ("michael_mic" ,0 ,0 ); -if (IS_ERR (tfm)) +if (IS_ERR (tfm)) { +ath11k_warn (ab,"failed to allocate michael_mic shash: %ld\n" , +PTR_ERR (tfm));return PTR_ERR (tfm); + }spin_lock_bh (&ab->base_lock);
base-commit: bea046575a2e6d7d1cf63cc7ab032647a3585de5
Signature · 7 lines
2.30.2 -- ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
Quoted 9 lines · Kalle Valo
Christoph reported that ath11k failed to initialise when michael_mic.ko module was not installed. To make it easier to notice that case print a warning when
crypto_alloc_shash()fails.Compile tested only.
Reported-by Christoph Hellwig <[email protected]>Signed-off-by Kalle Valo <[email protected]>
Patch applied to ath-next branch of ath.git, thanks.
a87a9110ac0d wifi: ath11k: print a warning when crypto_alloc_shash() fails
Signature · 9 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches -- ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k