lkml.org 
[lkml]   [2011]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRE: [PATCH][RFC] infiniband: Fix allocation size in register_snoop_agent()
On Fri, 11 Feb 2011, Hefty, Sean wrote:

> > 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.
>
Ok. Thank you for that reply.
Just ignore the patch then.

--
Jesper Juhl <jj@chaosbits.net> http://www.chaosbits.net/
Plain text mails only, please.
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html



\
 
 \ /
  Last update: 2011-02-13 21:23    [W:0.049 / U:7.828 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site