Skip to content

Commit

Permalink
mlx5: fix max length of hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
leoncamel committed Dec 31, 2024
1 parent fb965e2 commit 1a3e006
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion providers/mlx5/mlx5.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include <stdarg.h>
#include <stdatomic.h>
#include <util/compiler.h>
#include <limits.h>

#include <infiniband/driver.h>
#include <util/udma_barrier.h>
Expand Down Expand Up @@ -363,7 +364,7 @@ struct mlx5_context {
int stall_cycles;
struct mlx5_bf *bfs;
FILE *dbg_fp;
char hostname[40];
char hostname[HOST_NAME_MAX + 1];
struct mlx5_spinlock hugetlb_lock;
struct list_head hugetlb_list;
int cqe_version;
Expand Down

0 comments on commit 1a3e006

Please sign in to comment.