From: Dotan Barak Date: Tue, 10 Jul 2007 13:55:57 +0000 (+0300) Subject: IB/core: Take sizeof the correct pointer when calling kmalloc() X-Git-Tag: v2.6.23-rc1~1085^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=856c52a741950dc0be2c5c231efec626e9a0a3fa;p=pandora-kernel.git IB/core: Take sizeof the correct pointer when calling kmalloc() When allocating out_mad in show_pma_counter(), take sizeof *out_mad instead of sizeof *in_mad. It is true that today the type of in_mad and out_mad are the same, but this patch will give us a cleaner code. Signed-off-by: Dotan Barak Signed-off-by: Roland Dreier --- Reading git-diff-tree failed