> --- a/drivers/infiniband/core/ucma.c > +++ b/drivers/infiniband/core/ucma.c > @@ -1363,6 +1363,9 @@ static ssize_t ucma_process_join(struct > ucma_file *file, > if (IS_ERR(ctx)) > return PTR_ERR(ctx); > > + if (!ctx->cm_id->device) > + return -EINVAL; rdma_join_multicast() includes state checks which are intended to validate that the cm_id is in a valid state. It may make more sense to expand those checks with a device check, since the state checks alone are insufficient. - Sean -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html