From: Roland Dreier Date: Sat, 30 May 2015 06:11:27 +0000 (-0700) Subject: IB/mlx4: Fix error paths in mlx4_ib_create_flow() X-Git-Tag: omap-for-v4.2/fixes-rc1^2~152^2~27^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1156256811e42908fd13c4cfcf32965d8b93f2a8;p=pandora-kernel.git IB/mlx4: Fix error paths in mlx4_ib_create_flow() The unwinding clean up code are err_create_flow starts at the current index i. That means we shouldn't increment i until we're really sure we won't have to destroy the current flow; otherwise we might increment the index, fail inside an is_bonded block, and end up accessing off the end of the reg_id[] array. This was detected by Coverity (CID 1271229). Signed-off-by: Roland Dreier Signed-off-by: Doug Ledford --- Reading git-diff-tree failed