trans_rdma: check msk_getpd return value before using it