Commit 10ca9dac authored by Shay Drory's avatar Shay Drory Committed by sanglipeng
Browse files

RDMA/mlx5: Fix NULL string error

stable inclusion
from stable-v5.10.198
commit cfc333393ae66fe00b84c6917bc44f93bedb638a
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I987V5

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=cfc333393ae66fe00b84c6917bc44f93bedb638a



--------------------------------

commit dab994bc 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>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent f5024cc9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2069,7 +2069,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";
	}
}