Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d739f54 authored by Shay Drory's avatar Shay Drory Committed by Greg Kroah-Hartman
Browse files

RDMA/mlx5: Fix NULL string error



commit dab994bcc609a172bfdab15a0d4cb7e50e8b5458 upstream.

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

Fixes: 37aa5c36 ("IB/mlx5: Add UARs write-combining and non-cached mapping")
Signed-off-by: default avatarShay Drory <shayd@nvidia.com>
Link: https://lore.kernel.org/r/8638e5c14fadbde5fa9961874feae917073af920.1695203958.git.leonro@nvidia.com


Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 95e9a0d7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1680,7 +1680,7 @@ static inline char *mmap_cmd2str(enum mlx5_ib_mmap_cmd cmd)
	case MLX5_IB_MMAP_NC_PAGE:
		return "NC";
	default:
		return NULL;
		return "Unknown";
	}
}