From: Roland Dreier Date: Tue, 14 Oct 2008 21:05:36 +0000 (-0700) Subject: IB/mad: Use krealloc() to resize snoop table X-Git-Tag: v2.6.28-rc1~61^2^5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=528051746b24dd214883db11bcbb0e667f60447d;p=pandora-kernel.git IB/mad: Use krealloc() to resize snoop table Use krealloc() instead of kmalloc() followed by memcpy() when resizing the MAD module's snoop table. Also put parentheses around the new table size to avoid calculating the wrong size to allocate, which fixes a bug pointed out by Haven Hash . Signed-off-by: Roland Dreier --- Reading git-diff-tree failed