Skip to content

Commit dab994b

Browse files
shayshyirleon
authored andcommitted
RDMA/mlx5: Fix NULL string error
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 <[email protected]> Link: https://lore.kernel.org/r/8638e5c14fadbde5fa9961874feae917073af920.1695203958.git.leonro@nvidia.com Signed-off-by: Leon Romanovsky <[email protected]>
1 parent 2fad8f0 commit dab994b

File tree

1 file changed

+1
-1
lines changed
  • drivers/infiniband/hw/mlx5

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/mlx5/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2084,7 +2084,7 @@ static inline char *mmap_cmd2str(enum mlx5_ib_mmap_cmd cmd)
20842084
case MLX5_IB_MMAP_DEVICE_MEM:
20852085
return "Device Memory";
20862086
default:
2087-
return NULL;
2087+
return "Unknown";
20882088
}
20892089
}
20902090

0 commit comments

Comments
 (0)