[Linux-stable-mirror] [PATCH 4.9 174/177] RDMA/cma: Avoid triggering undefined behavior