]> git.baikalelectronics.ru Git - kernel.git/commitdiff
RDMA/mlx5: Fix NULL string error
authorShay Drory <shayd@nvidia.com>
Wed, 20 Sep 2023 10:01:56 +0000 (13:01 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Oct 2023 20:00:45 +0000 (22:00 +0200)
commit dab994bcc609a172bfdab15a0d4cb7e50e8b5458 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/mlx5/main.c

index 3178df55c4d85820d30d2485e0d36f9f1814a5d4..0baf3b5518b4657ba598f7656550aaf8aa78ef54 100644 (file)
@@ -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";
        }
 }