RE: [PATCH][RFC] infiniband: Fix allocation size inregister_snoop_agent()

From: Hefty, Sean
Date: Fri Feb 11 2011 - 18:09:13 EST


> Ok, someone needs to double check me on this before merging anything, but
> don't we want to allocate sizeof(struct ib_mad_snoop_private) here, rather
> than just the size of a pointer to the struct?

new_snoop_table is declared as:

struct ib_mad_snoop_private **new_snoop_table;

It should point to an array of pointers.

- Sean
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/