From: Eli Cohen Date: Thu, 6 Oct 2011 16:33:12 +0000 (-0700) Subject: mlx4_core: Fix buddy->num_free allocation size X-Git-Tag: v3.2-rc1~104^2^9~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8312755db7ac800c83ec036058c3109892e0949;p=pandora-kernel.git mlx4_core: Fix buddy->num_free allocation size The num_free field of mlx4_buddy has a type of array of unsigned int while it was allocated as an array of pointers. On 64-bit platforms this allocates twice more than required. Fix this by allocating the correct size for the type. Signed-off-by: Eli Cohen [ Convert to kcalloc(). - Roland ] Signed-off-by: Roland Dreier --- Reading git-diff-tree failed