Skip to content

Commit

Permalink
RDMA/mlx5: Fix NULL string error
Browse files Browse the repository at this point in the history
commit dab994b upstream.

checkpath is complaining about NULL string, change it to 'Unknown'.

Fixes: 37aa5c3 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
shayshyi authored and gregkh committed Oct 10, 2023
1 parent 26eb130 commit 76b6a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/hw/mlx5/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2074,7 +2074,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";
}
}

Expand Down

0 comments on commit 76b6a98

Please sign in to comment.