summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx5/main.c
diff options
context:
space:
mode:
authorShay Drory <shayd@nvidia.com>2023-09-20 12:01:56 +0200
committerLeon Romanovsky <leon@kernel.org>2023-09-26 11:29:44 +0200
commitdab994bcc609a172bfdab15a0d4cb7e50e8b5458 (patch)
treede4c0a23093009989757d3922854791cf0bfda0b /drivers/infiniband/hw/mlx5/main.c
parentRDMA/mlx5: Fix mutex unlocking on error flow for steering anchor creation (diff)
downloadlinux-dab994bcc609a172bfdab15a0d4cb7e50e8b5458.tar.xz
linux-dab994bcc609a172bfdab15a0d4cb7e50e8b5458.zip
RDMA/mlx5: Fix NULL string error
checkpath is complaining about NULL string, change it to 'Unknown'. Fixes: 37aa5c36aa70 ("IB/mlx5: Add UARs write-combining and non-cached mapping") Signed-off-by: Shay Drory <shayd@nvidia.com> Link: https://lore.kernel.org/r/8638e5c14fadbde5fa9961874feae917073af920.1695203958.git.leonro@nvidia.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/main.c')
-rw-r--r--drivers/infiniband/hw/mlx5/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c
index aed5cdea50e6..555629b798b9 100644
--- a/drivers/infiniband/hw/mlx5/main.c
+++ b/drivers/infiniband/hw/mlx5/main.c
@@ -2084,7 +2084,7 @@ static inline char *mmap_cmd2str(enum mlx5_ib_mmap_cmd cmd)
case MLX5_IB_MMAP_DEVICE_MEM:
return "Device Memory";
default:
- return NULL;
+ return "Unknown";
}
}