[Linux-stable-mirror] [PATCH 4.14 166/178] RDMA/cma: Avoid triggering undefined behavior