On Tue, Nov 16, 2010 at 8:15 PM, Eli Cohen <e...@dev.mellanox.co.il> wrote: > The members_count field size is 24 bits so mask it properly when reading it. > > Signed-off-by: Eli Cohen <e...@mellanox.co.il> > ---
> > - members_count = be32_to_cpu(mgm->members_count); > + members_count = be32_to_cpu(mgm->members_count) & 0xffffff; Later, in attach/detach you are loosing protocol when assigning mgm->members_count. line: mgm->members_count = cpu_to_be32(members_count) should be changes to: mgm->members_count = cpu_to_be32(members_count) | (mgm->members_count & 0xff000000); -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html