[ofa-general] a possible bug in drivers/infiniband/hw/mthca/mthca_qp.c

Isaac Huang isaac at clusterfs.com
Wed Jun 20 08:40:47 PDT 2007


On Wed, Jun 20, 2007 at 08:06:58AM -0700, Roland Dreier wrote:
>  > static void to_ib_ah_attr(struct mthca_dev *dev, struct ib_ah_attr *ib_ah_attr,
>  >                                 struct mthca_qp_path *path)
>  > {
>  > 	memset(ib_ah_attr, 0, sizeof *path);
>  > 
>  > I think it shall be 'sizeof *ib_ah_attr' instead. Please CC me - I'm
>  > not on this list.
> 
> Yes, you're right, but what source are you looking at?  The fix went
> into the kernel with commit 99d4f22e in 2.6.21-rc1, back in February.
> 

I stumbled upon that in OFED 1.1, then I looked somewhere in the mist
of openfabrics git trees, maybe I checked the wrong branch; sorry.

Isaac




More information about the general mailing list