From: Tariq Toukan Date: Sun, 15 May 2016 07:21:26 +0000 (+0300) Subject: net/mlx4_core: Fix access to uninitialized index X-Git-Tag: v3.2.82~71 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=150130396177f7dabe7f3fdd18f64fe19adbced7;p=pandora-kernel.git net/mlx4_core: Fix access to uninitialized index commit 2bb07e155bb3e0c722c806723f737cf8020961ef upstream. Prevent using uninitialized or negative index when handling steering entries. Fixes: b12d93d63c32 ('mlx4: Add support for promiscuous mode in the new steering model.') Signed-off-by: Tariq Toukan Reported-by: Dan Carpenter Signed-off-by: David S. Miller [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed