From: Jack Morgenstein Date: Sun, 3 Nov 2013 08:03:22 +0000 (+0200) Subject: net/mlx4_core: Fix checking order in MR table init X-Git-Tag: v3.13-rc1~105^2~66^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a30f1bc5c0254cee94bc22304e57fe030fcf68f5;p=pandora-kernel.git net/mlx4_core: Fix checking order in MR table init In procedure mlx4_init_mr_table(), slaves should do no processing, but should return success. This initialization is hypervisor-only. However, the check for num_mpts being a power-of-2 was performed before the check to return immediately if the driver is for a slave. This resulted in spurious failures. The order of performing the checks is reversed, so that if the driver is for a slave, no processing is done and success is returned. Signed-off-by: Jack Morgenstein Signed-off-by: Or Gerlitz Signed-off-by: David S. Miller --- Reading git-diff-tree failed