From: Eli Cohen Date: Mon, 25 Oct 2010 02:56:47 +0000 (+0000) Subject: mlx4_en: Fix out of bounds array access X-Git-Tag: v2.6.37-rc1~88^2~48 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0926f91083f34d047abc74f1ca4fa6a9c161f7db;p=pandora-kernel.git mlx4_en: Fix out of bounds array access When searching for a free entry in either mlx4_register_vlan() or mlx4_register_mac(), and there is no free entry, the loop terminates without updating the local variable free thus causing out of array bounds access. Fix this by adding a proper check outside the loop. Signed-off-by: Eli Cohen Signed-off-by: David S. Miller --- Reading git-diff-tree failed