From: Matan Barak Date: Wed, 19 Mar 2014 16:11:49 +0000 (+0200) Subject: IB/mlx4_ib: Adapt code to use caps.num_ports instead of a constant X-Git-Tag: v3.15-rc1~113^2~116^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82373701be26b893eaf7372db0af84235a51998a;p=pandora-kernel.git IB/mlx4_ib: Adapt code to use caps.num_ports instead of a constant Some code in the mlx4 IB driver stack assumed MLX4_MAX_PORTS ports. Instead, we should only loop until the number of actual ports in i the device, which is stored in dev->caps.num_ports. Signed-off-by: Matan Barak Signed-off-by: Or Gerlitz Signed-off-by: David S. Miller --- Reading git-diff-tree failed