git: 7211ab584ecf - stable/14 - mlx5e tls: use non-sleeping malloc flag is it was intended

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Tue, 03 Dec 2024 00:51:29 UTC
The branch stable/14 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=7211ab584ecf5e0a7053733188c90797bd20fcb9

commit 7211ab584ecf5e0a7053733188c90797bd20fcb9
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2024-11-25 18:45:09 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-12-03 00:39:23 +0000

    mlx5e tls: use non-sleeping malloc flag is it was intended
    
    (cherry picked from commit 67f93079075be4a2f5b7198fb3bda6d10bbd54e7)
---
 sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c b/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c
index 66ecf33e67b2..af280abcdcd2 100644
--- a/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c
+++ b/sys/dev/mlx5/mlx5_en/mlx5_en_hw_tls.c
@@ -407,7 +407,7 @@ mlx5e_tls_snd_tag_alloc(if_t ifp, union if_snd_tag_alloc_params *params,
 	if (priv->gone != 0 || priv->tls.init == 0)
 		return (EOPNOTSUPP);
 
-	ptag = uma_zalloc(priv->tls.zone, M_WAITOK);
+	ptag = uma_zalloc(priv->tls.zone, M_NOWAIT);
  	if (ptag == NULL)
  		return (ENOMEM);